diff options
author | Tom Milligan <tommilligan@users.noreply.github.com> | 2023-09-09 08:43:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 08:43:59 +0100 |
commit | 95dc7582ad6a00d6e04c91e4c3d59f4c6a39ff1a (patch) | |
tree | b2bf6722548f102a7aa1d06e1c491a80792f7c7b | |
parent | 4dad5a86c8722a5a5d7cd45c97cfd8ce629bc6af (diff) | |
parent | b658eb6049703f55630de3bbbe2b9e333ab44a0c (diff) |
Merge pull request #119 from eitsupi/add-aarch64-musl
ci(deploy): deploy aarch64-unknown-linux-musl
-rw-r--r-- | .github/workflows/deploy.yml | 24 | ||||
-rw-r--r-- | Cargo.toml | 3 |
2 files changed, 14 insertions, 13 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4052fd2..dfc6dfb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,12 +16,10 @@ jobs: strategy: fail-fast: false matrix: - target: - - x86_64-unknown-linux-gnu - - x86_64-unknown-linux-musl - - x86_64-apple-darwin - - x86_64-pc-windows-msvc include: + - target: aarch64-unknown-linux-musl + os: ubuntu-latest + name: aarch64-unknown-linux-musl.tar.gz - target: x86_64-unknown-linux-gnu os: ubuntu-latest name: x86_64-unknown-linux-gnu.tar.gz @@ -56,17 +54,19 @@ jobs: profile: minimal target: ${{ matrix.target }} - - name: Setup | musl tools - if: matrix.target == 'x86_64-unknown-linux-musl' - run: sudo apt install -y musl-tools + - name: Setup | cross + if: endsWith(matrix.target, '-unknown-linux-musl') + uses: taiki-e/install-action@v2 + with: + tool: cross - name: Build | Build - if: matrix.target != 'x86_64-unknown-linux-musl' + if: ${{ !endsWith(matrix.target, '-unknown-linux-musl') }} run: cargo build --release --target ${{ matrix.target }} - name: Build | Build (musl) - if: matrix.target == 'x86_64-unknown-linux-musl' - run: cargo build --release --target ${{ matrix.target }} + if: endsWith(matrix.target, '-unknown-linux-musl') + run: cross build --release --target ${{ matrix.target }} - name: Post Setup | Extract tag name shell: bash @@ -78,7 +78,6 @@ jobs: run: | mkdir target/stage cd target/${{ matrix.target }}/release - strip ${{ env.CRATE_NAME }}.exe 7z a ../../stage/${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }} ${{ env.CRATE_NAME }}.exe cd - - name: Post Setup | Prepare artifacts [-nix] @@ -86,7 +85,6 @@ jobs: run: | mkdir target/stage cd target/${{ matrix.target }}/release - strip ${{ env.CRATE_NAME }} tar czvf ../../stage/${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }} ${{ env.CRATE_NAME }} cd - - name: Post Setup | Upload artifacts @@ -17,6 +17,9 @@ name = "mdbook-admonish" path = "src/bin/mdbook-admonish.rs" required-features = ["cli"] +[profile.release] +strip = true + [lib] name = "mdbook_admonish" path = "src/lib.rs" |