From 4ffc99947d505bb12df8f57d3b244bee1d378336 Mon Sep 17 00:00:00 2001 From: Toka Date: Tue, 26 Nov 2024 20:01:26 +0100 Subject: [PATCH 01/10] stuf --- .github/workflows/build_and_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index c72bb5e32d..4c74f025ea 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -90,6 +90,7 @@ jobs: run: RUSTFLAGS="--cfg docsrs" cargo +nightly test --doc --all-features ubuntu-miri: + if: ${{ github.event.label.name == 'pre-release' }} runs-on: ubuntu-24.04 steps: - name: Add nightly clippy From 366064ef187ecac36e2493b139777a0e65291d04 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:15:50 +0100 Subject: [PATCH 02/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4c74f025ea..fca38593cd 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -90,7 +90,7 @@ jobs: run: RUSTFLAGS="--cfg docsrs" cargo +nightly test --doc --all-features ubuntu-miri: - if: ${{ github.event.label.name == 'pre-release' }} + if: ${{ github.event.pull_request.labels.*.name == 'pre-release' }} runs-on: ubuntu-24.04 steps: - name: Add nightly clippy From 554bc939865bf50a82e2016372d2d93bbd1f7369 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:17:45 +0100 Subject: [PATCH 03/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index fca38593cd..5c6d46abb4 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -93,6 +93,8 @@ jobs: if: ${{ github.event.pull_request.labels.*.name == 'pre-release' }} runs-on: ubuntu-24.04 steps: + - name: Debug + run: echo ${{ github.event.pull_request.labels }} - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4 From b5fd7bd3b3ae825c38bc53a9decef9fb5d1b1d97 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:18:39 +0100 Subject: [PATCH 04/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 5c6d46abb4..6ae344c260 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -90,7 +90,6 @@ jobs: run: RUSTFLAGS="--cfg docsrs" cargo +nightly test --doc --all-features ubuntu-miri: - if: ${{ github.event.pull_request.labels.*.name == 'pre-release' }} runs-on: ubuntu-24.04 steps: - name: Debug From 7a5ab25d75b69f6fe411c539fff96cd0ac12eab5 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:21:06 +0100 Subject: [PATCH 05/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 6ae344c260..ece3120441 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -93,7 +93,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Debug - run: echo ${{ github.event.pull_request.labels }} + run: echo ${{ github.event.pull_request.labels.*.name }} - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4 From 05410c64b6aaadbf431cd88803f9453599e02596 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:22:46 +0100 Subject: [PATCH 06/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index ece3120441..e5c82874d8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -93,7 +93,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Debug - run: echo ${{ github.event.pull_request.labels.*.name }} + run: echo "${{ github.event.pull_request.labels.*.name }}" && echo fuck - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4 From 37e1b0451295f990fafb7ab862adb6de86a81e69 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:28:35 +0100 Subject: [PATCH 07/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e5c82874d8..d14ed76128 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -5,12 +5,14 @@ on: branches: [ main, "pr/**" ] pull_request: branches: [ main ] + types: ["labeled", "opened", "synchronize", "reopened"] workflow_dispatch: merge_group: env: CARGO_TERM_COLOR: always CARGO_NET_GIT_FETCH_WITH_CLI: true MAIN_LLVM_VERSION: 18 + GITHUB_CONTEXT: ${{ toJson(github) }} concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -93,7 +95,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Debug - run: echo "${{ github.event.pull_request.labels.*.name }}" && echo fuck + run: echo "$GITHUB_CONTEXT" - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4 From 5ed98437a9301efd343e00018167e140ff9c6d3a Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:31:36 +0100 Subject: [PATCH 08/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d14ed76128..7827c5a905 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -93,9 +93,10 @@ jobs: ubuntu-miri: runs-on: ubuntu-24.04 + if: contains( github.event.pull_request.labels.*.name, 'pre-release') steps: - name: Debug - run: echo "$GITHUB_CONTEXT" + run: echo ${{ contains( github.event.pull_request.labels.*.name, 'My Label') }} - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4 From 314f03f9e129152102016e479544943643020ebd Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:33:16 +0100 Subject: [PATCH 09/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 7827c5a905..9c9683ad52 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -96,7 +96,7 @@ jobs: if: contains( github.event.pull_request.labels.*.name, 'pre-release') steps: - name: Debug - run: echo ${{ contains( github.event.pull_request.labels.*.name, 'My Label') }} + run: echo ${{ contains( github.event.pull_request.labels.*.name, 'pre-release') }} - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4 From 4c0d80035abdb35e1576d722ead12e9f8d799ff0 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 27 Nov 2024 15:35:38 +0100 Subject: [PATCH 10/10] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9c9683ad52..2a46a8034f 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,7 +12,7 @@ env: CARGO_TERM_COLOR: always CARGO_NET_GIT_FETCH_WITH_CLI: true MAIN_LLVM_VERSION: 18 - GITHUB_CONTEXT: ${{ toJson(github) }} + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -95,8 +95,6 @@ jobs: runs-on: ubuntu-24.04 if: contains( github.event.pull_request.labels.*.name, 'pre-release') steps: - - name: Debug - run: echo ${{ contains( github.event.pull_request.labels.*.name, 'pre-release') }} - name: Add nightly clippy run: rustup toolchain install nightly --component miri --allow-downgrade - uses: actions/checkout@v4