Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye committed Nov 10, 2024
1 parent acc4599 commit 5758e43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .cargo/config.toml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,23 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Install cross-compilation tools
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: Build binary
run: cargo build --release --target ${{ matrix.target }}

- name: Prepare package
shell: bash
run: |
mkdir -p packages/${{ matrix.name }}/bin
if [ "${{ matrix.name }}" = "win32-x64" ]; then
cp build/target/${{ matrix.target }}/release/swagit.exe packages/${{ matrix.name }}/bin
cp target/${{ matrix.target }}/release/swagit.exe packages/${{ matrix.name }}/bin
else
cp build/target/${{ matrix.target }}/release/swagit packages/${{ matrix.name }}/bin
cp target/${{ matrix.target }}/release/swagit packages/${{ matrix.name }}/bin
fi
- name: Upload artifact
Expand Down

0 comments on commit 5758e43

Please sign in to comment.