Skip to content

Commit

Permalink
[release] Try fix windows and linux build again (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamChou19815 authored Sep 17, 2023
1 parent bd1f3fa commit 1938c15
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
cargo b -p samlang-cli --release --target x86_64-unknown-linux-gnu
mkdir bin
cp target/aarch64-unknown-linux-gnu/release/samlang-cli bin/samlang-aarch64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnurelease/samlang-cli bin/samlang-x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release/samlang-cli bin/samlang-x86_64-unknown-linux-gnu
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -55,17 +55,13 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-pc-windows-msvc,x86_64-pc-windows-msvc
- name: Install Additional Linkers
run: |
sudo apt update
sudo apt install gcc-aarch64-linux-gnu
- name: Build
run: |
cargo b -p samlang-cli --release --target aarch64-pc-windows-msvc
cargo b -p samlang-cli --release --target x86_64-pc-windows-msvc
mkdir bin
cp target/aarch64-pc-windows-msvc/release/samlang-cli bin/samlang-aarch64-pc-windows-msvc
cp target/x86_64-pc-windows-msvc/release/samlang-cli bin/samlang-x86_64-pc-windows-msvc
cp target/aarch64-pc-windows-msvc/release/samlang-cli.exe bin/samlang-aarch64-pc-windows-msvc.exe
cp target/x86_64-pc-windows-msvc/release/samlang-cli.exe bin/samlang-x86_64-pc-windows-msvc.exe
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1938c15

Please sign in to comment.