From 2b91d9159d6721386d5d007e0f38165fe764db3f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jul 2026 17:22:17 +0200 Subject: [PATCH 1/3] Add workflow --- .github/workflow/build-binaries.yml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflow/build-binaries.yml diff --git a/.github/workflow/build-binaries.yml b/.github/workflow/build-binaries.yml new file mode 100644 index 0000000..a69f594 --- /dev/null +++ b/.github/workflow/build-binaries.yml @@ -0,0 +1,50 @@ +name: Build Binaries + +on: + workflow_dispatch: + push: + branches: + - main + tags: + - "*" + pull_request: + +jobs: + build: + name: Build (${{ matrix.target }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: + - x86_64-unknown-linux-gnu + - aarch64-unknown-linux-gnu + - x86_64-unknown-linux-musl + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install cross + uses: taiki-e/install-action@v2 + with: + tool: cross + + - name: Build release binary + run: cross build --release --bin vcard-viewer --target ${{ matrix.target }} + + - name: Prepare artifact + run: | + mkdir -p dist + cp target/${{ matrix.target }}/release/vcard-viewer \ + dist/vcard-viewer-${{ matrix.target }} + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: vcard-viewer-${{ matrix.target }} + path: dist/vcard-viewer-${{ matrix.target }} + if-no-files-found: error From 47e5beb0ffa532b4ade0dab1c607ffef80eabd60 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jul 2026 18:01:42 +0200 Subject: [PATCH 2/3] Update workflow file --- .github/workflow/build-binaries.yml | 50 ----------------------------- 1 file changed, 50 deletions(-) delete mode 100644 .github/workflow/build-binaries.yml diff --git a/.github/workflow/build-binaries.yml b/.github/workflow/build-binaries.yml deleted file mode 100644 index a69f594..0000000 --- a/.github/workflow/build-binaries.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Build Binaries - -on: - workflow_dispatch: - push: - branches: - - main - tags: - - "*" - pull_request: - -jobs: - build: - name: Build (${{ matrix.target }}) - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - target: - - x86_64-unknown-linux-gnu - - aarch64-unknown-linux-gnu - - x86_64-unknown-linux-musl - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - - - name: Install cross - uses: taiki-e/install-action@v2 - with: - tool: cross - - - name: Build release binary - run: cross build --release --bin vcard-viewer --target ${{ matrix.target }} - - - name: Prepare artifact - run: | - mkdir -p dist - cp target/${{ matrix.target }}/release/vcard-viewer \ - dist/vcard-viewer-${{ matrix.target }} - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: vcard-viewer-${{ matrix.target }} - path: dist/vcard-viewer-${{ matrix.target }} - if-no-files-found: error From a39443e1d0b93a3de0aac6093b0400314ad0b3da Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jul 2026 18:44:47 +0200 Subject: [PATCH 3/3] Add workflow --- .github/workflows/build-binaries.yml | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build-binaries.yml diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml new file mode 100644 index 0000000..f407329 --- /dev/null +++ b/.github/workflows/build-binaries.yml @@ -0,0 +1,50 @@ +name: Build Binaries + +on: + workflow_dispatch: + push: + branches: + - main + tags: + - "*" + pull_request: + +jobs: + build: + name: Build (${{ matrix.target }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: + - x86_64-unknown-linux-gnu + - aarch64-unknown-linux-gnu + - x86_64-unknown-linux-musl + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install cross + uses: taiki-e/install-action@v2 + with: + tool: cross + + - name: Build release binary + run: cross build --release --bin mqattack --target ${{ matrix.target }} + + - name: Prepare artifact + run: | + mkdir -p dist + cp target/${{ matrix.target }}/release/mqattack \ + dist/mqattack-${{ matrix.target }} + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: mqattack-${{ matrix.target }} + path: dist/mqattack-${{ matrix.target }} + if-no-files-found: error