Skip to content

Commit

Permalink
fix: 修复命名
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Dec 18, 2023
1 parent 046a9d7 commit d5f3404
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
targets: ${{ matrix.target.name }}

- name: Install dependencies

if: runner.os == 'Linux'
run: |
sudo apt-get update
Expand All @@ -68,23 +69,26 @@ jobs:
sudo systemctl start docker
- name: Install Cross
run: |
cargo install cross
- name: Build
run: |
cargo install cross --git https://github.com/cross-rs/cross
cross build --release --target ${{ matrix.target.name }}
- name: package # 将编译好的二进制文件打包,如果是Windows就打包exe文件,其它系统打包AirISP*文件
run: |
if [[ ${{ matrix.target.name }} =~ "windows" ]]
then
zip -j ~/release/AirISP-${{ matrix.target.file_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next.exe
zip -j target/${{ matrix.target.name }}/release/AirISP-${{ matrix.target.file_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next.exe
else
zip -j ~/release/AirISP-${{ matrix.target.file_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next
zip -j target/${{ matrix.target.name }}/release/AirISP-${{ matrix.target.file_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next
fi
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "~/release/AirISP-${{ matrix.target.file_name }}.zip"
artifacts: "target/${{ matrix.target.name }}/release/AirISP-${{ matrix.target.file_name }}.zip"


0 comments on commit d5f3404

Please sign in to comment.