forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
137 lines (121 loc) · 4.71 KB
/
main.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# 💎 Main Workflow: eQuantum MEC30
name: COmpendium of RElations – Modulo 6
#
# The semantics for running shell commands in GitHub actions is non-obvious. Please read
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
# before modifying this file.
#
# GitHub Actions files can be difficult to modify with confidence, because testing changes often
# requires pushing to a branch and running CI remotely.
# To make this process easier, consider the following:
#
# 1) Use Visual Studio Code with the GitHub Actions Extension (github.vscode-github-actions).
# This allows you to check the validity of your action schema and syntax without pushing to a branch.
# 2) Use https://github.com/nektos/act to run your CI steps locally. Note this will only work with
# steps run on Linux platforms, as `act` is implemented with Docker containers.
# 3) Use https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#using-job-outputs-in-a-matrix-job
# to share environment variables across multiple runners and join them, see https://stackoverflow.com/a/59201610/4058484
#
# Our strategy is to rely on the built-in (unspecified) shell, and explicitly set the
# shell settings we want (with `set -eo pipefail`) at the beginning of anybash script.
# For more information on these settings, see `man bash`.
#
on:
push:
workflow_run:
types: [completed]
workflows: ["pages-build-deployment"]
# 💢 Allow concurrent
concurrency:
group: "pages"
cancel-in-progress: true
# ⚠️ Set token permissions
permissions: write-all
jobs:
lexering:
strategy:
max-parallel: 1
fail-fast: true
matrix:
config:
- { os: ubuntu-latest, id: 1 }
- { os: windows-latest, id: 2 }
# 🌀 Commutation relations
runs-on: ${{ matrix.config.os }}
if: ${{ github.event_name == 'push' ||
github.event.workflow_run.conclusion == 'success' }}
steps:
- name: 📂 Checkout
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.ACCESS_TOKEN }}
- name: ⚙️ Build Maps
uses: eq19/maps@v2
id: build-parser
with:
tmp: ${{ matrix.config.id }}
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
initiate_pauli: ${{ toJSON(steps.set-lexering.outputs) }}
- name: 🪂 Feed Mapping
uses: eq19/feed@v3
id: feed-mapping
with:
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
initiate_pauli: ${{ toJSON(steps.build-parser.outputs) }}
- name: 🏃♂️ Lexering Runner
uses: eq19/lexer@v1
id: set-lexering
with:
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
initiate_pauli: ${{ toJSON(steps.feed-mapping.outputs) }}
outputs:
# ♻️ Simulate Gell-Mann Matrices
id: ${{ join(steps.build-parser.outputs.*, '\n') }}
spin: ${{ join(steps.feed-mapping.outputs.*, '\n') }}
target: ${{ join(steps.set-lexering.outputs.*, '\n') }}
setup-parser:
needs: lexering
strategy:
matrix:
config:
- { os: self-hosted, id: 3 }
# ✔️ Completeness relations
runs-on: ${{ matrix.config.os }}
steps:
- name: 📂 Checkout
uses: actions/checkout@v4
with:
ref: gh-pages
submodules: recursive
token: ${{ secrets.ACCESS_TOKEN }}
- name: 🕸️ Parsering
uses: eq19/parser@v2
id: set-parser
with:
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
gell_mann: ${{ toJSON(needs.lexering.outputs) }}
- name: 🔧 Evaluate Syntax
uses: eq19/syntax@v2
id: eval-syntax
with:
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
gell_mann: ${{ toJSON(steps.set-parser.outputs) }}
- name: 🚀 Set Grammar Rules
uses: eq19/grammar@v1
id: grammar-rules
with:
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
gell_mann: ${{ toJSON(steps.eval-syntax.outputs) }}