-
Notifications
You must be signed in to change notification settings - Fork 42
61 lines (56 loc) · 1.31 KB
/
main.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
52
53
54
55
56
57
58
59
60
61
name: Build, Test and Package Snapshots
on:
push:
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/main.yml'
jobs:
build_for_windows:
runs-on: windows-latest
name: Build for Windows
steps:
- uses: actions/checkout@v3
- name: Make
run: make test # build + test
env:
CC: gcc
- run: |
mkdir -p artifacts/windows
cp bin/dasm.exe artifacts/windows/dasm.exe
- uses: actions/upload-artifact@v3
with :
name: dasm snapshot builds
path: artifacts
build_for_mac:
runs-on: macos-latest
name: Build for Mac
steps:
- uses: actions/checkout@v3
- name: Make
run: make test # build + test
env:
CC: gcc
- run: |
mkdir -p artifacts/macos
cp bin/dasm artifacts/macos/dasm
- uses: actions/upload-artifact@v3
with :
name: dasm snapshot builds
path: artifacts
build_for_linux:
runs-on: ubuntu-latest
name: Build for Linux
steps:
- uses: actions/checkout@v3
- name: Make
run: make test # build + test
env:
CC: gcc
- run: |
mkdir -p artifacts/linux
cp bin/dasm artifacts/linux/dasm
- uses: actions/upload-artifact@v3
with :
name: dasm snapshot builds
path: artifacts