-
Notifications
You must be signed in to change notification settings - Fork 19
64 lines (54 loc) · 1.34 KB
/
ci.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
name: 👑 CI
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ci
cancel-in-progress: true
jobs:
stubs:
# Pushes should only run on mainline branch "development"
name: 🔄 Update Stub Files
secrets:
PYAMREX_PUSH_TOKEN: ${{ secrets.PYAMREX_PUSH_TOKEN }}
uses: ./.github/workflows/stubs.yml
ubuntu:
name: 🐧 Ubuntu
needs: [stubs]
uses: ./.github/workflows/ubuntu.yml
intel:
name: 🐧 Intel
needs: [ubuntu]
uses: ./.github/workflows/intel.yml
hip:
name: 🐧 HIP
needs: [ubuntu]
uses: ./.github/workflows/hip.yml
macos:
name: 🍏 macOS
needs: [ubuntu]
uses: ./.github/workflows/macos.yml
windows:
name: 🪟 Windows
needs: [ubuntu]
uses: ./.github/workflows/windows.yml
codeql:
name: 🔎 CodeQL
needs: [ubuntu]
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/codeql.yml
save_pr_number:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
retention-days: 1