Skip to content

Commit

Permalink
chore: fixing build with multi targets
Browse files Browse the repository at this point in the history
  • Loading branch information
giangndm committed Nov 23, 2023
1 parent 60b53f7 commit 000e146
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ jobs:
target: armv7-unknown-linux-gnueabihf
- build: linux gnu mips
os: ubuntu-latest
rust: nightly
rust: stable
target: mips-unknown-linux-gnu
- build: linux gnuabi64 mips64
os: ubuntu-latest
rust: nightly
rust: stable
target: mips64-unknown-linux-gnuabi64
- build: linux gnuabi64 mips64el
os: ubuntu-latest
rust: nightly
rust: stable
target: mips64el-unknown-linux-gnuabi64
- build: linux gnu mipsel
os: ubuntu-latest
rust: nightly
rust: stable
target: mipsel-unknown-linux-gnu
# - build: linux musl aarch64
# os: ubuntu-latest
Expand All @@ -89,14 +89,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
target: ${{ matrix.target }}

- name: Install dev-tools
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y --no-install-recommends pkg-config musl-dev musl-tools
Expand All @@ -111,12 +103,21 @@ jobs:
brew update
brew install libsoxr
- name: Build
uses: actions-rs/cargo@v1
- name: Test
uses: houseabsolute/actions-rust-cross@v0
with:
command: test
target: ${{ matrix.target }}
args: "--locked --release --package media-server"
strip: true

- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
use-cross: true
command: build
args: --verbose --release --package media-server --target ${{ matrix.target }}
target: ${{ matrix.target }}
args: "--locked --release --package media-server"
strip: true

- name: Show files
run: |
Expand Down

0 comments on commit 000e146

Please sign in to comment.