Mercurial > msvpvf
annotate .github/workflows/build.yml @ 35:cb2a28cef9cc
Merge branch 'master' into actions
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Sun, 17 Apr 2022 02:54:08 -0400 |
parents | c517cf837d95 |
children | b283e2d60deb |
rev | line source |
---|---|
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
1 name: msvpvf CI |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
3 on: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
4 push: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
5 pull_request: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
6 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
7 jobs: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
8 build-win: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
9 runs-on: windows-latest |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
10 defaults: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
11 run: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
12 shell: msys2 {0} |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
13 strategy: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
14 matrix: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
15 include: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
16 - { sys: mingw64, env: x86_64 } |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
17 - { sys: mingw32, env: i686 } |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
18 steps: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
19 - name: Setup MSYS2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
20 uses: msys2/setup-msys2@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
21 with: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
22 msystem: ${{matrix.sys}} |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
23 install: >- |
23
ee96b991e033
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
22
diff
changeset
|
24 make |
22
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
25 mingw-w64-${{matrix.env}}-clang |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
26 - uses: actions/checkout@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
27 - name: make |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
28 run: | |
32
c517cf837d95
export CC
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
23
diff
changeset
|
29 export CC=clang |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
30 make |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
31 make gui |
22
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
32 strip msvpvf.exe |
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
33 strip gui.exe |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
34 - name: Upload artifact |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
35 uses: actions/upload-artifact@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
36 with: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
37 name: msvpvf-win-${{matrix.env}}-${{ github.sha }} |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
38 path: | |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
39 gui.exe |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
40 msvpvf.exe |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
41 build-mac: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
42 runs-on: macOS-latest |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
43 steps: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
44 - uses: actions/checkout@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
45 - name: make |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
46 run: | |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
47 make |
22
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
48 strip msvpvf |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
49 gzip -k msvpvf |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
50 - name: Upload artifact |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
51 uses: actions/upload-artifact@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
52 with: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
53 name: msvpvf-osx-${{ github.sha }} |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
54 path: | |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
55 msvpvf.gz |