forked from cooperative-computing-lab/cctools
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.36 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
workflow_dispatch:
branches:
- master
schedule:
- cron: '5 0 * * *' # build every day at 12:05AM
name: Nightly build
jobs:
build-linux:
runs-on: ubuntu-latest
container: ${{ format('cclnd/cctools-env:x86_64-{0}', matrix.os-name) }}
timeout-minutes: 30
env:
CCTOOLS_OUTPUT: ${{ format('cctools-{0}-x86_64-{1}.tar.gz', 'nightly', matrix.os-name) }}
CCTOOLS_DOCKER_GITHUB: yes
strategy:
matrix:
os-name: ['ubuntu20.04']
steps:
- name: checkout CCTools from main head
uses: actions/checkout@v2
- name: Get sha of HEAD
id: vars
shell: bash
run: echo "::set-output name=tag_sha::$(git rev-parse --short HEAD)"
- name: update nightly tag
run: |
git tag -f nightly
git push -f origin nightly
- name: build
run: ${GITHUB_WORKSPACE}/packaging/scripts/build.sh
- name: deploy
uses: ncipollo/release-action@v1
with:
artifacts: /tmp/${{ env.CCTOOLS_OUTPUT }}
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
artifactContentType: application/gzip
draft: false
omitBody: true
omitBodyDuringUpdate: true
prerelease: true
replacesArtifacts: true
commit: ${{ steps.vars.output.tag_sha }}
tag: nightly