Skip to content

Commit 2f5a988

Browse files
committed
Add other platforms; fix label
1 parent 8d17c71 commit 2f5a988

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

.github/workflows/aarch64-darwin.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Prebuild DevX closures for aarch64-darwin
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
name: Build for aarch64-darwin
9+
uses: ./.github/workflows/main.yml
10+
with:
11+
platform: aarch64-darwin

.github/workflows/aarch64-linux.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Prebuild DevX closures for aarch64-linux
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
name: Build for aarch64-linux
9+
uses: ./.github/workflows/main.yml
10+
with:
11+
platform: aarch64-linux

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Group the output by platform.
3838
RUNS=$(gh api "repos/$GITHUB_REPOSITORY/commits/2c66429a549f1122374faf3e1eb097e07a8f0c22/check-runs" --paginate)
3939
echo "checks..."
40-
FILTERED=$(jq -c -r '.check_runs[] | select(.name | endswith("-env")) | select(.name | startswith("${{ inputs.platform }}")) | { "config": .name, "build_path": .output.text }' <<< "$RUNS")
40+
FILTERED=$(jq -c -r '.check_runs[] | select(.name | endswith("-env")) | select(.name | startswith("${{ inputs.platform }}")) | { "config": .name, "build_path": .output.text, "short_name": .name | sub("${{ inputs.platform }}\\.";"") }' <<< "$RUNS")
4141
jq . <<< "$FILTERED"
4242
MATRIX=$(jq --slurp -c -r '.' <<< "$FILTERED")
4343
jq . <<< "$MATRIX"
@@ -52,7 +52,7 @@ jobs:
5252
fail-fast: false
5353
matrix:
5454
job: ${{ fromJson(needs.discover.outputs.matrix) }}
55-
name: Container Upload for ${{ matrix.job.config }}
55+
name: GHCR Upload for ${{ matrix.job.short_name }}
5656
permissions:
5757
contents: read
5858
packages: write

.github/workflows/x86_64-darwin.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Prebuild DevX closures for x86_64-darwin
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
name: Build for x86_64-darwin
9+
uses: ./.github/workflows/main.yml
10+
with:
11+
platform: x86_64-darwin

0 commit comments

Comments
 (0)