From 1e9ae43e52f655c5b21df71f5ed61c3e9ec74c29 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 17 Jun 2025 23:38:47 +0200 Subject: [PATCH] update workflows (to also include ARM support) --- .github/workflows/publish.yaml | 68 ++++++--------------------------- .github/workflows/validate.yaml | 14 ------- 2 files changed, 11 insertions(+), 71 deletions(-) delete mode 100644 .github/workflows/validate.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b7dcd28..8b3b72c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -9,72 +9,26 @@ on: description: the tag to release for default: "" jobs: - compile: - runs-on: ubuntu-latest + release_bin: + runs-on: ${{matrix.os}} + strategy: + matrix: + os: + - ubuntu-24.04 + - ubuntu-24.04-arm steps: - uses: actions/checkout@v4 - run: make compile - - uses: actions/upload-artifact@v4 - with: - name: bin - path: bin/ - # release_deb: - # runs-on: ubuntu-latest - # needs: compile - # steps: - # - uses: actions/download-artifact@v4 - # with: - # name: bin - # path: ${{github.workspace}}/bin - # - if: ${{!env.ACT}} - # uses: softprops/action-gh-release@v2 - # with: - # tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}} - # files: bin/coinflip - # fail_on_unmatched_files: true - # env: - # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - # - if: ${{env.ACT}} - # uses: actions/upload-artifact@v4 - # with: - # path: bin/coinflip - # release_aur-bin: - # runs-on: ubuntu-latest - # needs: compile - # steps: - # - uses: actions/download-artifact@v4 - # with: - # name: bin - # path: ${{github.workspace}}/bin - # - if: ${{!env.ACT}} - # uses: softprops/action-gh-release@v2 - # with: - # tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}} - # files: bin/coinflip - # fail_on_unmatched_files: true - # env: - # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - # - if: ${{env.ACT}} - # uses: actions/upload-artifact@v4 - # with: - # path: bin/coinflip - release_bin: - runs-on: ubuntu-latest - needs: compile - steps: - - if: ${{!env.ACT}} - uses: actions/download-artifact@v4 - with: - name: bin - path: ${{github.workspace}}/bin + - run: echo "FNAME=coinflip-$(uname -s)-$(uname -m)" >>"$GITHUB_ENV" + - run: mv bin/coinflip "$FNAME" - uses: softprops/action-gh-release@v2 with: tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}} - files: bin/coinflip + files: ${{env.FNAME}} fail_on_unmatched_files: true env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - if: ${{env.ACT}} uses: actions/upload-artifact@v4 with: - path: bin/coinflip + path: ${{env.FNAME}} diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml deleted file mode 100644 index f92359c..0000000 --- a/.github/workflows/validate.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: validate -on: - pull_request: - branches: - - '**' - push: - branches: - - '**' -jobs: - compile: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: make compile