Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(label): use fork-action instead of action script #3764

Merged
merged 41 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
801a2ec
ci(label): use fork-action instead of action script
clearloop Feb 29, 2024
fe5a55d
Merge branch 'master' into cl/issue-3661
clearloop May 7, 2024
62dfb33
chore(fork-actions): checkout to cl/required-checks
clearloop May 7, 2024
aaa880b
Merge branch 'master' into cl/issue-3661
clearloop May 7, 2024
1818173
chore(label): debug label always
clearloop May 7, 2024
805d0a5
chore(label): correct check names
clearloop May 7, 2024
b4ee445
chore(label): add inputs for osx
clearloop May 7, 2024
d2e6b80
chore(label): inputs of macos
clearloop May 7, 2024
598884f
feat(label): leading field of profiles
clearloop May 7, 2024
d0f49cb
chore(osx): add workflow_dispatch inputs
clearloop May 7, 2024
4ec9c74
chore(label): try resolve osx inputs
clearloop May 7, 2024
4708bba
chore(label): set profiles with outputs
clearloop May 7, 2024
2377f2b
chore(label): make profiles string
clearloop May 7, 2024
00e7013
ci(macos): default value for dispatch inputs
clearloop May 7, 2024
474711a
Merge branch 'master' into cl/issue-3661
clearloop May 7, 2024
b3221b8
chore(ci): trigger ci
clearloop May 7, 2024
6b84651
chore(ci): trigger ci
clearloop May 7, 2024
d164a43
ci(dist): trigger ci
clearloop May 7, 2024
fc35380
chore(label): get back label trigger
clearloop May 7, 2024
32a63bb
chore(label): merge linux and osx back to dispatch
clearloop May 7, 2024
84f398c
Merge branch 'master' into cl/issue-3661
clearloop May 9, 2024
db27d70
Merge branch 'master' into cl/issue-3661
clearloop May 13, 2024
0bdb4c7
ci(label): support E1-forcenatwin
clearloop May 16, 2024
6dccb23
ci(label): test forcenatwin
clearloop May 16, 2024
f2965ae
ci(label): remove if for testing
clearloop May 16, 2024
c613d1d
ci(label): run win check
clearloop May 16, 2024
877810b
ci(label): test E3-forcerelease
clearloop May 16, 2024
7b39d32
chore(ci): trigger forking
clearloop May 16, 2024
0baf7cc
ci(label): enable everything
clearloop May 17, 2024
2fdd38b
ci(label): detect release and production in pre-checks
clearloop May 17, 2024
bdda85d
ci(build): add release and production to action inputs
clearloop May 17, 2024
5f55e60
ci(label): optimize configs
clearloop May 18, 2024
9b15e0d
Merge branch 'master' into cl/issue-3661
clearloop May 18, 2024
11cfb0c
ci(label): trigger without labeling
clearloop May 18, 2024
9deda98
ci(label): remove outdated comma
clearloop May 18, 2024
cb09163
ci(label): without head configs
clearloop May 18, 2024
6b9a923
ci(label): test from osx
clearloop May 18, 2024
8fff85c
ci(label): enable everything
clearloop May 20, 2024
3882789
Merge branch 'master' into cl/issue-3661
clearloop May 20, 2024
9ef1d04
ci(label): trigger label on labeled
clearloop May 20, 2024
0f3e90b
Merge branch 'master' into cl/issue-3661
clearloop May 28, 2024
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
206 changes: 0 additions & 206 deletions .github/actions/label/build.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/message/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function main() {
const {
pull_request: {
title,
head: { sha, ref: branch },
head: { sha },
labels: _labels,
},
repository: { full_name: fullName },
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
type: string
required: true
workflow_dispatch:
inputs:
profiles:
type: string
default: '[{ "name": "debug", "flags": "" }]'

env:
CARGO_TERM_COLOR: always
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-win-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
type: string
required: true
workflow_dispatch:
inputs:
profiles:
type: string
default: '[{ "name": "debug", "flags": "" }]'

env:
CARGO_TERM_COLOR: always
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ on:
number:
type: string
description: "Pull request number that triggers this workflow"
release:
type: boolean
default: false
production:
type: boolean
default: false

run-name: ${{ inputs.title }} ( ${{ format('#{0}', inputs.number) }} )

Expand Down
51 changes: 38 additions & 13 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,47 @@ jobs:
runs-on: ubuntu-latest
if: >-
github.event.label.name == 'A0-pleasereview'
|| github.event.label.name == 'E2-forcemacos'
|| github.event.label.name == 'A4-insubstantial'
|| github.event.label.name == 'A2-mergeoncegreen'
|| github.event.label.name == 'E1-forcenatwin'
|| github.event.label.name == 'E2-forcemacos'

steps:
- uses: actions/checkout@v4

- name: Fork Linux checks
if: >-
github.event.label.name == 'A0-pleasereview'
|| github.event.label.name == 'A4-insubstantial'
|| github.event.label.name == 'A2-mergeoncegreen'
uses: gear-tech/fork-action@main
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/github-script@v7
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
LABEL: ${{ github.event.label.name }}
REF: ${{ github.head_ref || github.ref_name }}
TITLE: ${{ github.event.pull_request.title }}
NUMBER: ${{ github.event.number }}
REPO: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: ".github/workflows/build.yml"
prefix: "build"
jobs: '["linux", "win-cross"]'
useMulti: true
inputs: '{
"title": "${{ github.event.pull_request.title }}",
"number": "${{ github.event.number }}"
}'

- name: Fork OSX checks
if: github.event.label.name == 'E2-forcemacos'
uses: gear-tech/fork-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: ".github/workflows/build-macos.yml"
prefix: "build"
jobs: '[ "macos-x86", "macos-aarch64" ]'
useProfiles: true

- name: Fork Win checks
if: github.event.label.name == 'E1-forcenatwin'
uses: gear-tech/fork-action@main
with:
script: |
const script = require('./.github/actions/label/build.js');
await script({ github, core });
token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: ".github/workflows/build-win-native.yml"
prefix: "build"
jobs: '[ "win-native" ]'
useProfiles: true
Loading