From 4366e3e0f8d6b96e6f57acf8c864630a2194aa02 Mon Sep 17 00:00:00 2001 From: martinohmann Date: Sat, 15 Jun 2024 12:24:57 +0200 Subject: [PATCH] chore: check if aarch64-apple-darwin-strip is available --- .github/workflows/check-strip.yml | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/check-strip.yml diff --git a/.github/workflows/check-strip.yml b/.github/workflows/check-strip.yml new file mode 100644 index 0000000..9ed1a00 --- /dev/null +++ b/.github/workflows/check-strip.yml @@ -0,0 +1,43 @@ +--- +name: check-strip +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + tags: + - '*' + +jobs: + check-strip: + env: + # Emit backtraces on panics. + RUST_BACKTRACE: 1 + name: test ${{ matrix.target }} (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - target: aarch64-apple-darwin + os: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ matrix.target }} + profile: minimal + override: true + + - name: Check strip + run: | + strip || true + + - name: Check aarch64-apple-darwin-strip + run: | + aarch64-apple-darwin-strip || true