-
-
Notifications
You must be signed in to change notification settings - Fork 17
64 lines (61 loc) · 1.49 KB
/
build_n_test.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
62
63
name: Spin2cpp CI
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
workflow_call:
jobs:
build_win32:
runs-on: ubuntu-20.04
steps:
- name: Install MinGW
run: "sudo apt-get install gcc-mingw-w64-i686"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: make zip CROSS=win32
- name: Rename ZIP
run: |
mv flexptools.zip "flexptools-win32-`git describe --tags --always`.zip"
- uses: actions/upload-artifact@v3
with:
name: release_zips_win32
path: "./*.zip"
build_linux_amd64:
runs-on: ubuntu-20.04
steps:
- name: Install musl-gcc
run: "sudo apt-get install musl-tools"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: make zip CROSS=linux-musl
- name: Rename ZIP
run: |
mv flexptools.zip "flexptools-linux-amd64-`git describe --tags --always`.zip"
- uses: actions/upload-artifact@v3
with:
name: release_zips_linux_amd64
path: "./*.zip"
test_offline:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: make
run: make
- name: test
run: make test_offline
test_spinsim:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: make
run: make
- name: test
run: make test_spinsim