This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
86 lines (74 loc) · 2.12 KB
/
task.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
name: task # named after our build tool (taskfile) cli command
on:
pull_request:
branches: [main, devel]
push:
branches: [main, devel]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
task:
name: ${{ matrix.name || matrix.command }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
command:
- lint
- build
os:
- ubuntu-22.04
include:
- command: build
os: macos-14
name: build@macos
env:
# We use this option only on release pipeline due to the heavy cost
EXTRA_OPTS: ""
EXPECTED_IMAGES: 2
SKIP_PODMAN: 1
steps:
- name: Grab the source from Git
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed to determine version
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5
with:
# keep this in sync with python version from base container
python-version: "3.12" # 3.12 is default on fedora-39
cache: "pip"
- name: Set cache for galaxy
uses: actions/cache@v4
with:
path: |
collections
key: galaxy-${{ hashFiles('_build/requirements.yml') }}
save-always: true
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
base:
- 'base/**'
- name: "Run: task base"
if: steps.changes.outputs.base == 'true' && matrix.command == 'build'
run: task base
- name: "Run: task ${{ matrix.command }}"
run: task ${{ matrix.command }}
check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- task
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}