From 5aba9b3e5144ef51c1ae25e2e3a0b6067157e425 Mon Sep 17 00:00:00 2001 From: epi Date: Sat, 8 Jun 2024 21:39:36 -0400 Subject: [PATCH] added pipeline for mac arm --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba7b5659..f93f59cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -156,6 +156,38 @@ jobs: with: name: x86_64-macos-feroxbuster.tar.gz path: x86_64-macos-feroxbuster.tar.gz + + build-macos-aarch64: + env: + IN_PIPELINE: true + runs-on: macos-latest + # if: github.ref == 'refs/heads/main' + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: aarch64-apple-darwin + override: true + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --release --target=aarch64-apple-darwin + - name: Strip symbols from binary + run: | + strip -u -r target/aarch64-apple-darwin/release/feroxbuster + - name: Build tar.gz for homebrew installs + run: | + tar czf aarch64-macos-feroxbuster.tar.gz -C target/aarch64-apple-darwin/release feroxbuster + - uses: actions/upload-artifact@v2 + with: + name: aarch64-macos-feroxbuster + path: target/aarch64-apple-darwin/release/feroxbuster + - uses: actions/upload-artifact@v2 + with: + name: aarch64-macos-feroxbuster.tar.gz + path: aarch64-macos-feroxbuster.tar.gz build-windows: env: