forked from esbmc/esbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.4 KB
/
release.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
48
49
50
51
name: Upload Release Asset
on:
schedule:
# M H - - D => 06:00 of Monday
- cron: '0 6 * * 1'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
uses: ./.github/workflows/build.yml
with:
operating-system: ${{ matrix.os }}
build-flags: '-b RelWithDebInfo -e Off'
testing: false
create-release:
name: Upload Release Asset
runs-on: ubuntu-20.04
needs: [build]
steps:
- name: Download Linux Build
uses: actions/download-artifact@v2
with:
name: release-ubuntu-latest
path: ./linux-release
- name: Create Linux Release file
run: zip -r esbmc-linux.zip ./linux-release
- name: Download Windows Build
uses: actions/download-artifact@v2
with:
name: release-windows-latest
path: ./windows-release
- name: Create Windows Release file
run: zip -r esbmc-windows.zip ./windows-release
- name: Get files
run: ls
- name: Do the release
uses: softprops/action-gh-release@master
with:
name: 'ESBMC nightly'
body: 'This is an automated nightly release of ESBMC.'
tag_name: nightly-${{ github.sha }}
target_commitish: ${{ github.sha }}
prerelease: true
files: |
esbmc-linux.zip
esbmc-windows.zip