File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*'
7+
8+ jobs :
9+ build :
10+ name : Build on ${{ matrix.os }}
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ matrix :
14+ os : [ubuntu-20.04, macos-11]
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v3
18+ with :
19+ submodules : ' recursive'
20+
21+ - name : Build
22+ run : |
23+ mkdir build
24+ cd build
25+ cmake ..
26+ make
27+
28+ - name : Upload Artifact
29+ uses : actions/upload-artifact@v3
30+ with :
31+ name : fastbe-${{ matrix.os }}
32+ path : build/src/fastbe
33+
34+ release :
35+ needs : build
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Download Artifacts
39+ uses : actions/download-artifact@v3
40+ with :
41+ path : artifacts
42+
43+ - name : Display structure
44+ run : ls -R
45+ working-directory : artifacts/
46+
47+ - name : Prepare artifacts
48+ run : |
49+ mv artifacts/fastbe-ubuntu-20.04/fastbe artifacts/fastbe-ubuntu
50+ mv artifacts/fastbe-macos-11/fastbe artifacts/fastbe-macos
51+
52+ - name : Release
53+ uses : softprops/action-gh-release@v1
54+ with :
55+ files : |
56+ artifacts/fastbe-ubuntu
57+ artifacts/fastbe-macos
58+ env :
59+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments