Skip to content

Commit

Permalink
Disable separate workflows. Add test matrix wf
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-canonical committed Sep 30, 2024
1 parent 351a09f commit 45eae10
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-amd64.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-arm64.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/snap-ci.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 45eae10

Please sign in to comment.