Skip to content

Commit

Permalink
[ci] Add a workflow to update a nightly branch
Browse files Browse the repository at this point in the history
This adds a `nightly` branch that is updated once per day with a
specific TVM commit to enable third-parties to synchronize on which TVM
commit to test. A batch of commits is added once per day and tests
should be run on the `HEAD` of that batch.
  • Loading branch information
driazati committed Dec 6, 2022
1 parent 8d04e1e commit 54398fb
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/update_nightly_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# Update a branch for nightly test results
name: Update nightly branch

on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:

concurrency:
group: update-nightly-branch
cancel-in-progress: true

jobs:
update-nightly-branch:
if: github.repository == 'driazati/tvm'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Update nightly branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eux
git checkout -B nightly
git show
git push origin --force nightly

0 comments on commit 54398fb

Please sign in to comment.