Skip to content

Commit

Permalink
fix: mips-* targets install nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 25, 2024
1 parent 497782b commit 4e2b3f8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 34 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/build-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,31 @@ jobs:
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
- mipsel-unknown-linux-gnu
platform:
- target: x86_64-unknown-linux-musl
toolchain: stable
- target: aarch64-unknown-linux-musl
toolchain: stable
- target: mipsel-unknown-linux-gnu
toolchain: nightly

steps:
- uses: actions/checkout@v4

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
rustup toolchain install ${{ matrix.platform.toolchain }}
rustup default ${{ matrix.platform.toolchain }}
rustup override set ${{ matrix.platform.toolchain }}
- name: Install cross
run: cargo install cross

- name: Build ${{ matrix.target }}
- name: Build ${{ matrix.platform.target }}
timeout-minutes: 120
run: |
compile_target=${{ matrix.target }}
compile_target=${{ matrix.platform.target }}
compile_features="-f full"
Expand All @@ -61,12 +64,12 @@ jobs:
fi
cd build
./build-release -t ${{ matrix.target }} $compile_features $compile_compress $compile_nightly
./build-release -t ${{ matrix.platform.target }} $compile_features $compile_compress $compile_nightly
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
name: ${{ matrix.platform.target }}
path: build/release/*

build-unix:
Expand Down
62 changes: 39 additions & 23 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,57 @@ jobs:
strategy:
fail-fast: false
matrix:
target:
- i686-unknown-linux-musl
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
- armv7-unknown-linux-gnueabihf
- arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- arm-unknown-linux-musleabi
- arm-unknown-linux-musleabihf
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- mips-unknown-linux-gnu
- mipsel-unknown-linux-gnu
- mips64-unknown-linux-gnuabi64
- mips64el-unknown-linux-gnuabi64
platform:
- target: i686-unknown-linux-musl
toolchain: stable
- target: x86_64-pc-windows-gnu
toolchain: stable
- target: x86_64-unknown-linux-gnu
toolchain: stable
- target: x86_64-unknown-linux-musl
toolchain: stable
- target: armv7-unknown-linux-musleabihf
toolchain: stable
- target: armv7-unknown-linux-gnueabihf
toolchain: stable
- target: arm-unknown-linux-gnueabi
toolchain: stable
- target: arm-unknown-linux-gnueabihf
toolchain: stable
- target: arm-unknown-linux-musleabi
toolchain: stable
- target: arm-unknown-linux-musleabihf
toolchain: stable
- target: aarch64-unknown-linux-gnu
toolchain: stable
- target: aarch64-unknown-linux-musl
toolchain: stable
- target: mips-unknown-linux-gnu
toolchain: nightly
- target: mipsel-unknown-linux-gnu
toolchain: nightly
- target: mips64-unknown-linux-gnuabi64
toolchain: nightly
- target: mips64el-unknown-linux-gnuabi64
toolchain: nightly

steps:
- uses: actions/checkout@v4

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
rustup toolchain install ${{ matrix.platform.toolchain }}
rustup default ${{ matrix.platform.toolchain }}
rustup override set ${{ matrix.platform.toolchain }}
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross.git

- name: Build ${{ matrix.target }}
- name: Build ${{ matrix.platform.target }}
timeout-minutes: 120
run: |
compile_target=${{ matrix.target }}
compile_target=${{ matrix.platform.target }}
compile_features="-f full"
Expand All @@ -73,7 +89,7 @@ jobs:
fi
cd build
./build-release -t ${{ matrix.target }} $compile_features $compile_compress $compile_nightly
./build-release -t ${{ matrix.platform.target }} $compile_features $compile_compress $compile_nightly
- name: Upload Github Assets
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 4e2b3f8

Please sign in to comment.