-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (55 loc) · 1.55 KB
/
draft.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: draft
# Mostly from https://jon.sprig.gs/blog/post/2442
# Create a draft release on every push.
on:
push:
jobs:
build_release:
name: Build Release
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
release_suffix: ubuntu
- os: macos-latest
release_suffix: mac
- os: windows-latest
release_suffix: windows
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Mac build environment
if: matrix.os == 'macos-latest'
run: |
brew install gawk
- name: Setup Windows build environment
if: matrix.os == 'windows-latest'
run: |
choco install -y winflexbison3
choco install -y xxd
- name: Compile, verify, and create archives
run: |
make check artifacts
- name: Machine dependent file upload
uses: softprops/action-gh-release@v2
with:
name: draftbuild
draft: true
prerelease: false
generate_release_notes: false
files: |
bin-*.tar.gz
cfiles-*.tar.gz
- name: Source code upload
if: matrix.os == 'ubuntu-latest'
uses: softprops/action-gh-release@v2
with:
name: draftbuild
draft: true
prerelease: false
generate_release_notes: false
files: |
tokenize.tar.gz
cfiles.tar.gz