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 6ce4f89 commit 94c010f
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,33 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- name: x86_64-unknown-linux-gnu
- name: x86_64-unknown-linux-musl
file_name : "linux-x86_64"
# - name: x86_64-apple-darwin
# file_name : "macos-x86_64"
# - name: x86_64-pc-windows-msvc
# file_name : "windows-x86_64"
# - name: i686-unknown-linux-gnu
# file_name : "linux-x86"
# - name: i686-pc-windows-msvc
# file_name : "windows-x86"
# - name: aarch64-unknown-linux-gnu
# file_name : "linux-aarch64"
# - name: armv7-unknown-linux-gnueabihf
# file_name : "linux-armv7"
# - name: aarch64-apple-darwin
# file_name : "macos-aarch64"
os: ubuntu-latest
- name: i686-unknown-linux-musl
file_name : "linux-x86"
os: ubuntu-latest
- name: aarch64-unknown-linux-musl
file_name : "linux-aarch64"
os: ubuntu-latest

- name: i686-pc-windows-msvc
file_name : "windows-x86"
os: windows-latest
- name: x86_64-pc-windows-msvc
file_name : "windows-x86_64"
os: windows-latest

- name: x86_64-apple-darwin
file_name : "macos-x86_64"
os: macos-latest
- name: aarch64-apple-darwin
file_name : "macos-aarch64"
os: macos-latest
runs-on: ${{ matrix.target.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -37,6 +44,7 @@ jobs:
targets: ${{ matrix.target.name }}

- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get upgrade -y
Expand Down Expand Up @@ -65,7 +73,7 @@ jobs:

- name: package # 将编译好的二进制文件打包,如果是Windows就打包exe文件,其它系统打包AirISP*文件
run: |
if [[ ${{ matrix.target.name }} =~ "windows"* ]]
if [[ ${{ matrix.target.name }} =~ "windows" ]]
then
zip -j ~/release/AirISP-${{ matrix.target.file_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next.exe
else
Expand Down

0 comments on commit 94c010f

Please sign in to comment.