From f5917663d22c3be4a83d9adf0c579ff63c572522 Mon Sep 17 00:00:00 2001 From: RoyalOughtness <129108030+RoyalOughtness@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:55:56 -0700 Subject: [PATCH 1/2] feat(ci): add test build workflows --- .github/workflows/build.yml | 5 ++++ .github/workflows/build_aarch64_test.yml | 35 ++++++++++++++++++++++++ .github/workflows/build_x86_64_test.yml | 35 ++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 .github/workflows/build_aarch64_test.yml create mode 100644 .github/workflows/build_x86_64_test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e9a97b6..99730263 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,10 @@ on: arch: required: true type: string + test_build: + required: false + type: boolean + default: false secrets: RPM_SIGNING_KEY: required: true @@ -162,6 +166,7 @@ jobs: - name: Upload RPM and logs to R2 to trivalent Bucket shell: bash + if: ${{ ! inputs.test_build }} env: RCLONE_CONFIG_R2_TYPE: s3 RCLONE_CONFIG_R2_PROVIDER: Cloudflare diff --git a/.github/workflows/build_aarch64_test.yml b/.github/workflows/build_aarch64_test.yml new file mode 100644 index 00000000..72851353 --- /dev/null +++ b/.github/workflows/build_aarch64_test.yml @@ -0,0 +1,35 @@ +# Copyright 2025 The Trivalent Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is +# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and limitations under the License. + +name: build-aarch64-test + +permissions: {} + +on: + workflow_dispatch: + + +jobs: + build-aarch64: + name: Build aarch64 test + if: github.triggering_actor == 'royaloughtness' + strategy: + fail-fast: false + uses: ./.github/workflows/build.yml + with: + arch: 'aarch64' + test_build: true + secrets: + RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }} + R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} + R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} + R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} \ No newline at end of file diff --git a/.github/workflows/build_x86_64_test.yml b/.github/workflows/build_x86_64_test.yml new file mode 100644 index 00000000..a473c5a8 --- /dev/null +++ b/.github/workflows/build_x86_64_test.yml @@ -0,0 +1,35 @@ +# Copyright 2025 The Trivalent Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is +# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and limitations under the License. + +name: build-x86_64-test + +permissions: {} + +on: + workflow_dispatch: + + +jobs: + build-x86_64: + name: Build x86_64 test + if: github.triggering_actor == 'royaloughtness' + strategy: + fail-fast: false + uses: ./.github/workflows/build.yml + with: + arch: 'x86_64' + test_build: true + secrets: + RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }} + R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} + R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} + R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} \ No newline at end of file From 1920b631fec3f1b24b2e3a895a71cac1abcf6798 Mon Sep 17 00:00:00 2001 From: RoyalOughtness <129108030+RoyalOughtness@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:56:51 -0700 Subject: [PATCH 2/2] fix --- .github/workflows/build_aarch64_test.yml | 2 +- .github/workflows/build_x86_64_test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_aarch64_test.yml b/.github/workflows/build_aarch64_test.yml index 72851353..5c275f69 100644 --- a/.github/workflows/build_aarch64_test.yml +++ b/.github/workflows/build_aarch64_test.yml @@ -19,7 +19,7 @@ on: jobs: - build-aarch64: + build-aarch64-test: name: Build aarch64 test if: github.triggering_actor == 'royaloughtness' strategy: diff --git a/.github/workflows/build_x86_64_test.yml b/.github/workflows/build_x86_64_test.yml index a473c5a8..6ef3e19c 100644 --- a/.github/workflows/build_x86_64_test.yml +++ b/.github/workflows/build_x86_64_test.yml @@ -19,7 +19,7 @@ on: jobs: - build-x86_64: + build-x86_64-test: name: Build x86_64 test if: github.triggering_actor == 'royaloughtness' strategy: