From 4174012b8f14cbf92536c103c924b280e7a53b58 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Sun, 24 Sep 2023 03:11:08 -0400 Subject: ci: test if building with musl on Rust > 1.71 works again (#1302) * ci: test if building with musl on Rust > 1.71 works again * use cross instead? * specify cross version to fix build issue * Update build_releases.yml --- .github/workflows/build_releases.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml index 0ea81d46..8d4bf81c 100644 --- a/.github/workflows/build_releases.yml +++ b/.github/workflows/build_releases.yml @@ -61,8 +61,7 @@ jobs: - { os: "ubuntu-20.04", target: "x86_64-unknown-linux-musl", - cross: false, - rust: "1.71.0", + cross: true, } - { os: "ubuntu-20.04", @@ -296,13 +295,8 @@ jobs: fail-fast: false matrix: info: - - { target: "x86_64-unknown-linux-gnu", cross: false, dpkg: amd64 } - - { - target: "x86_64-unknown-linux-musl", - cross: false, - dpkg: amd64, - rust: "1.71.0", - } + - { target: "x86_64-unknown-linux-gnu", dpkg: amd64 } + - { target: "x86_64-unknown-linux-musl", cross: true, dpkg: amd64 } - { target: "aarch64-unknown-linux-gnu", cross: true, @@ -348,7 +342,7 @@ jobs: with: command: build args: --release --locked --verbose --features deploy --target ${{ matrix.info.target }} - use-cross: ${{ matrix.info.cross }} + use-cross: ${{ matrix.info.cross || false }} cross-version: 0.2.5 - name: Move automatically generated completion/manpage @@ -362,7 +356,7 @@ jobs: gzip ./manpage/btm.1 - name: Build Debian release (x86-64) - if: matrix.info.cross == false + if: startsWith(matrix.info.target, 'x86_64') env: BTM_GENERATE: true run: | @@ -371,7 +365,7 @@ jobs: cp ./target/${{ matrix.info.target }}/debian/bottom_*.deb . - name: Build Debian release (ARM) - if: matrix.info.cross == true + if: startsWith(matrix.info.target, 'x86_64') != true env: BTM_GENERATE: true run: | @@ -424,7 +418,7 @@ jobs: matrix: info: - { target: "x86_64-unknown-linux-gnu" } - - { target: "x86_64-unknown-linux-musl", rust: "1.71.0" } + - { target: "x86_64-unknown-linux-musl", cross: true } steps: - name: Checkout repository uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 @@ -443,9 +437,12 @@ jobs: env: BTM_GENERATE: true BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }} + CROSS_CONTAINER_IN_CONTAINER: true with: command: build + use-cross: ${{ matrix.info.cross || false }} args: --release --locked --verbose --features deploy --target ${{ matrix.info.target }} + cross-version: 0.2.5 - name: Move automatically generated completion/manpage shell: bash @@ -458,7 +455,6 @@ jobs: gzip ./manpage/btm.1 - name: Build rpm release - if: matrix.info.cross == false env: BTM_GENERATE: true run: | -- cgit v1.2.3