-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.04 KB
/
snap-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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