File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release Build
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ strategy :
13+ matrix :
14+ target :
15+ - x86_64-unknown-linux-gnu
16+ - x86_64-pc-windows-gnu
17+ - x86_64-apple-darwin
18+ - aarch64-apple-darwin
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v3
23+
24+ - name : Install Rust
25+ uses : actions-rs/toolchain@v1
26+ with :
27+ toolchain : stable
28+ target : ${{ matrix.target }}
29+ override : true
30+
31+ - name : Install Dependencies
32+ run : rustup target add ${{ matrix.target }}
33+
34+ - name : Build
35+ run : cargo build --release --target ${{ matrix.target }}
36+
37+ - name : Upload Artifact
38+ uses : actions/upload-artifact@v3
39+ with :
40+ name : shell-${{ matrix.target }}
41+ path : target/${{ matrix.target }}/release/shell
42+
43+ release :
44+ needs : build
45+ runs-on : ubuntu-latest
46+
47+ steps :
48+ - name : Checkout code
49+ uses : actions/checkout@v3
50+
51+ - name : Upload to Release
52+ uses : softprops/action-gh-release@v1
53+ with :
54+ files : |
55+ **/shell-x86_64-unknown-linux-gnu
56+ **/shell-x86_64-pc-windows-gnu.exe
57+ **/shell-x86_64-apple-darwin
58+ **/shell-aarch64-apple-darwin
59+ env :
60+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments