diff --git a/.github/workflows/build-amd64.yml b/.github/workflows/build-amd64.yml index 7817113..be3b5ea 100644 --- a/.github/workflows/build-amd64.yml +++ b/.github/workflows/build-amd64.yml @@ -1,12 +1,12 @@ name: Snap CI AMD64 on: - schedule: - - cron: "20 2 * * 1" # Monday morning 02:20 UTC - push: - branches: [main] - pull_request: - branches: [main] + # schedule: + # - cron: "20 2 * * 1" # Monday morning 02:20 UTC + # push: + # branches: [main] + # pull_request: + # branches: [main] # Allow manual trigger workflow_dispatch: diff --git a/.github/workflows/build-arm64.yml b/.github/workflows/build-arm64.yml index e84500e..14ac540 100644 --- a/.github/workflows/build-arm64.yml +++ b/.github/workflows/build-arm64.yml @@ -1,12 +1,12 @@ name: Snap CI ARM64 on: - schedule: - - cron: "20 2 * * 1" # Monday morning 02:20 UTC - push: - branches: [main] - pull_request: - branches: [main] + # schedule: + # - cron: "20 2 * * 1" # Monday morning 02:20 UTC + # push: + # branches: [main] + # pull_request: + # branches: [main] # Allow manual trigger workflow_dispatch: diff --git a/.github/workflows/snap-ci.yaml b/.github/workflows/snap-ci.yaml new file mode 100644 index 0000000..3028d6f --- /dev/null +++ b/.github/workflows/snap-ci.yaml @@ -0,0 +1,46 @@ +name: Snap CI + +on: + # schedule: + # - cron: "20 2 * * 1" # Monday morning 02:20 UTC + push: + # branches: [main] + pull_request: + # branches: [main] + # Allow manual trigger + workflow_dispatch: + +env: + ARTIFACT_AMD64: chip-tool_${{ github.run_number}}_amd64 + ARTIFACT_ARM64: chip-tool_${{ github.run_number}}_arm64 + +jobs: + build_matrix: + strategy: + matrix: + runner: ["ubuntu-latest", [self-hosted, ARM64, Linux]] + runs-on: ${{ matrix.runner }} + env: + RUNNER: ${{ matrix.runner }} + + # outputs: + # snap: ${{ steps.snapcraft.outputs.snap }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Debug print + run: | + echo "Running on $RUNNER" + + # - name: Build snap + # uses: snapcore/action-build@v1 + # id: snapcraft + + # - name: Upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: ${{ env.ARTIFACT_AMD64 }} + # path: ${{ steps.snapcraft.outputs.snap }} + # if-no-files-found: error