File tree Expand file tree Collapse file tree 4 files changed +66
-0
lines changed
Expand file tree Collapse file tree 4 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ [target .x86_64-apple-darwin ]
2+ rustflags = [" -C" , " link-arg=-mmacosx-version-min=10.10.0" ]
3+
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ build :
9+ name : Build
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@master
13+ - name : Set RUSTFLAGS for macOS
14+ if : matrix.target == 'x86_64-apple-darwin'
15+ run : echo "RUSTFLAGS=-C link-arg=-mmacosx-version-min=10.8" >> $GITHUB_ENV
16+ - name : Compile
17+ id : compile
18+ uses : rust-build/rust-build.action@v1.4.5
19+ with :
20+ # RUSTTARGET: x86_64-unknown-linux-musl
21+ RUSTTARGET : x86_64-apple-darwin
22+ UPLOAD_MODE : none
23+ - name : Upload artifact
24+ uses : actions/upload-artifact@v4
25+ with :
26+ name : Binary
27+ path : |
28+ ${{ steps.compile.outputs.BUILT_ARCHIVE }}
29+ ${{ steps.compile.outputs.BUILT_CHECKSUM }}
Original file line number Diff line number Diff line change 1+ on :
2+ release :
3+ types : [created]
4+
5+ jobs :
6+ release :
7+ name : release ${{ matrix.target }}
8+ runs-on : ubuntu-latest
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ include :
13+ - target : x86_64-pc-windows-gnu
14+ archive : zip
15+ - target : x86_64-unknown-linux-musl
16+ archive : tar.gz
17+ - target : x86_64-apple-darwin
18+ archive : zip
19+ steps :
20+ - uses : actions/checkout@master
21+ - name : Set RUSTFLAGS for macOS
22+ if : matrix.target == 'x86_64-apple-darwin'
23+ run : echo "RUSTFLAGS=-C link-arg=-mmacosx-version-min=10.12" >> $GITHUB_ENV
24+ - name : Compile and release
25+ uses : rust-build/rust-build.action@v1.4.5
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ with :
29+ RUSTTARGET : ${{ matrix.target }}
30+ ARCHIVE_TYPES : ${{ matrix.archive }}
Original file line number Diff line number Diff line change 1+ [toolchain ]
2+ channel = " 1.87.0"
3+ components = [ " rustfmt" , " clippy" ]
4+ profile = " minimal"
You can’t perform that action at this time.
0 commit comments