Skip to content

Commit bb2be0c

Browse files
authored
feat/ci: use commit hash for actions, add arm64 support to test workflow (#270)
* feat/ci: use commit hash for actions, add arm64 support to test workflow * feat: build snaps in arm * fu: run build-snap job only if base build job succeeds --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
1 parent d078665 commit bb2be0c

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ updates:
33
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "monthly"
6+
interval: "weekly"

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: Set up Python
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1919
with:
2020
python-version: '3.8'
2121

@@ -56,7 +56,7 @@ jobs:
5656
.
5757
5858
- name: Publish package
59-
uses: pypa/gh-action-pypi-publish@release/v1
59+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
6060
with:
6161
user: __token__
6262
password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/test.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ on: ['push', 'pull_request']
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
runs-on: ${{ matrix.os }}
88

99
strategy:
1010
matrix:
11+
os: ['ubuntu-latest', 'ubuntu-24.04-arm']
1112
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9', 'pypy3.10']
1213

1314
steps:
14-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1516

1617
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1819
with:
1920
python-version: ${{ matrix.python-version }}
2021

@@ -55,15 +56,22 @@ jobs:
5556
tldr --version
5657
5758
build-snap:
58-
runs-on: ubuntu-latest
59+
runs-on: ${{ matrix.os }}
60+
needs: ['build']
61+
62+
strategy:
63+
matrix:
64+
os: ['ubuntu-latest', 'ubuntu-24.04-arm']
5965

6066
steps:
6167
- uses: actions/checkout@v4
62-
- uses: snapcore/action-build@v1
68+
69+
- uses: canonical/action-build@3bdaa03e1ba6bf59a65f84a751d943d549a54e79 # v1.3.0
6370
id: snapcraft-build
6471
with:
6572
snapcraft-args: "-v"
66-
- uses: actions/upload-artifact@v4
73+
74+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6775
with:
6876
name: ${{ steps.snapcraft-build.outputs.snap }}
6977
path: ${{ steps.snapcraft-build.outputs.snap }}

0 commit comments

Comments
 (0)