@@ -15,23 +15,35 @@ jobs:
1515 include :
1616 - target : x86_64-unknown-linux-gnu
1717 os : ubuntu-latest
18+ binary_extension : " "
1819 - target : x86_64-apple-darwin
1920 os : macos-13
21+ binary_extension : " "
2022 - target : aarch64-apple-darwin
2123 os : macos-14
2224 - target : x86_64-pc-windows-msvc
2325 os : windows-latest
26+ binary_extension : " .exe"
2427 runs-on : ${{ matrix.os }}
2528 steps :
26- - name : Check out the repository
27- uses : actions/checkout@v4
28- - name : Upload binaries to release
29- uses : taiki-e/upload-rust-binary-action@v1
30- with :
31- bin : boa
32- # We may be able to provide a custom archive name, but
33- # currently just going with the example default.
34- target : ${{ matrix.target }}
35- archive : $bin-$tag-$target
36- ref : refs/tags/nightly
37- token : ${{ secrets.GITHUB_TOKEN }}
29+ - name : Checkout repository
30+ uses : actions/checkout@v4
31+
32+ - name : Install Rust toolchain
33+ uses : dtolnay/rust-toolchain@stable
34+ with :
35+ toolchain : stable
36+ targets : ${{ matrix.target }}
37+
38+ - name : Build
39+ run : cargo build --target ${{ matrix.target }} --release --locked --bin boa
40+
41+ - name : Upload binaries to release
42+ uses : svenstaro/upload-release-action@v2
43+ with :
44+ repo_token : ${{ secrets.GITHUB_TOKEN }}
45+ file : target/${{ matrix.target }}/release/boa${{ matrix.binary_extension }}
46+ asset_name : boa-${{ matrix.target }}${{ matrix.binary_extension }}
47+ tag : refs/tags/nightly
48+ overwrite : true
49+ prerelease : true
0 commit comments