Skip to content
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
b52f3c5
ci passes for external PRs
ludamad Feb 16, 2025
d3adeda
enable yarn with corepack
ludamad Feb 16, 2025
373cf84
slight fix
ludamad Feb 16, 2025
26266df
avm fix
ludamad Feb 16, 2025
d9a97a8
fixes
ludamad Feb 16, 2025
f477cd0
echo
ludamad Feb 16, 2025
151b98e
echo
ludamad Feb 16, 2025
d7c1b16
fix fork
ludamad Feb 16, 2025
147f969
fixes
ludamad Feb 16, 2025
252619e
fix external ci to ci external
ludamad Feb 16, 2025
181c89b
temp comment out
ludamad Feb 16, 2025
67d2682
test
ludamad Feb 16, 2025
02b9aa0
support ci-external-once
ludamad Feb 16, 2025
22924b1
Fix
ludamad Feb 16, 2025
5941481
Fix
ludamad Feb 16, 2025
cb4dcdf
fix
ludamad Feb 16, 2025
ec467e9
gnarly workflow
ludamad Feb 16, 2025
f6faab1
phd in github actions needed
ludamad Feb 16, 2025
b548d0c
See error
ludamad Feb 16, 2025
2c08c8c
See error
ludamad Feb 16, 2025
371988e
See error
ludamad Feb 16, 2025
5f95bcb
change the matrix
ludamad Feb 16, 2025
e497028
fix from json
ludamad Feb 20, 2025
06bb6b5
Merge branch 'master' into ad/ci-external-fixes
ludamad Feb 20, 2025
0ca7352
fixes
ludamad Feb 20, 2025
771d756
fixes
ludamad Feb 20, 2025
4bab0f1
try cond
ludamad Feb 20, 2025
9f6070b
Restore comments
ludamad Feb 20, 2025
49243ea
fail properly
ludamad Feb 20, 2025
b9a46e1
fail properly
ludamad Feb 20, 2025
1a4b7b9
fix
ludamad Feb 20, 2025
aefebb8
fix targeting
ludamad Feb 20, 2025
67ad4c7
revert
ludamad Feb 20, 2025
280351a
tweak
ludamad Feb 20, 2025
facaa94
simplify
ludamad Feb 20, 2025
b1b1218
remove comment, straightforward
ludamad Feb 20, 2025
01aeb76
try fix
ludamad Feb 20, 2025
666542f
Merge remote-tracking branch 'origin/ad/ci-external-fixes' into ad/ci…
ludamad Feb 20, 2025
0767e1c
fix event name clashing
ludamad Feb 20, 2025
651570e
Update ci3.yml
sklppy88 Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ on:
types: [opened, synchronize, reopened, ready_for_review, labeled]

concurrency:
# On master (handled by push event) the group id is the unique run_id so we get parallel runs.
# On PR's the group id is the ref_name so only 1 can run at a time.
group: ci3-${{ github.event_name == 'push' && github.run_id || github.ref_name }}
# On master or workflow_dispatch (checked via event_name) the group id is the unique run_id so we get parallel runs.
# On PR's the group id is the ref_name so only 1 can run at a time. Include the repo in case it is an external PR.
group: |
ci3-${{ github.event_name }}-${{
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.run_id ||
format('{0}/{1}', github.event.pull_request.head.repo.full_name, github.head_ref)
}}
cancel-in-progress: true

jobs:
Expand All @@ -34,7 +39,7 @@ jobs:
fail-fast: false
matrix:
# Only run arm64 build with arm64-ci label.
# Thhe way to do conditions here is to parse full strings as JSON.
# The way to do conditions here is to parse full strings as JSON.
settings: >-
${{ fromJson(contains(github.event.pull_request.labels.*.name, 'arm64-ci') &&
'[{"arch":"amd64"},{"arch":"arm64"}]' ||
Expand All @@ -54,19 +59,14 @@ jobs:
run: echo "CI is not run on drafts." && exit 1

- name: External Contributor Labels and Target
# Run only for external PRs (pull_request_target, != github.repository)
# And then check if we have incorrect labels OR an incorrect base_ref.
if: |
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository &&
(
(contains(github.event.pull_request.labels.*.name, 'ci-external') == false &&
contains(github.event.pull_request.labels.*.name, 'ci-external-once') == false)
)
contains(github.event.pull_request.labels.*.name, 'ci-external') == false &&
contains(github.event.pull_request.labels.*.name, 'ci-external-once') == false
run: echo "External PRs need the 'ci-external' or 'ci-external-once' labels to run." && exit 1

- name: External Contributor Changes
if: github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
if: github.event_name == 'pull_request_target'
run: |
set -o pipefail
git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1
Expand Down