From 240608822dbc36fdad167909b8841fbec83baa52 Mon Sep 17 00:00:00 2001 From: indirection42 Date: Tue, 5 Aug 2025 14:02:31 +0800 Subject: [PATCH 1/3] run build on feat/* and fix/* --- .github/workflows/build.yml | 45 ++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed9f4cb..5783e70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,12 @@ name: Build on: push: - branches: ["master"] + branches: + - "master" + - "feat/**" + - "fix/**" + tags: + - "v*.*.*" # Semantic version tags pull_request: branches: ["master"] @@ -118,6 +123,14 @@ jobs: # Build guest programs in parallel using matrix build-guest: runs-on: ubuntu-latest + # Run on main branches, release branches, or when explicitly requested + if: | + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/develop' || + startsWith(github.ref, 'refs/heads/release/') || + startsWith(github.ref, 'refs/heads/hotfix/') || + startsWith(github.ref, 'refs/tags/v') || + contains(github.event.pull_request.labels.*.name, 'full-build') strategy: matrix: guest: [ @@ -183,3 +196,33 @@ jobs: path: output/ retention-days: 7 + # Semantic release - automatically create releases based on conventional commits + semantic-release: + runs-on: ubuntu-latest + # Only run on master branch pushes after all other jobs pass + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + needs: [check-fmt, check-wasm, clippy-root, clippy-guests, test, build-guest] + permissions: + contents: write + issues: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install semantic-release + run: | + npm install -g semantic-release @semantic-release/changelog @semantic-release/git + + - name: Semantic Release + run: semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + From 9d5d14bba7a6b4e4fbc0b20b40ed77c5accc0822 Mon Sep 17 00:00:00 2001 From: indirection42 Date: Tue, 5 Aug 2025 14:51:33 +0800 Subject: [PATCH 2/3] fix --- .github/workflows/build.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5783e70..27ff3f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,7 +126,6 @@ jobs: # Run on main branches, release branches, or when explicitly requested if: | github.ref == 'refs/heads/master' || - github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/tags/v') || @@ -195,34 +194,3 @@ jobs: name: all-guests path: output/ retention-days: 7 - - # Semantic release - automatically create releases based on conventional commits - semantic-release: - runs-on: ubuntu-latest - # Only run on master branch pushes after all other jobs pass - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - needs: [check-fmt, check-wasm, clippy-root, clippy-guests, test, build-guest] - permissions: - contents: write - issues: write - pull-requests: write - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install semantic-release - run: | - npm install -g semantic-release @semantic-release/changelog @semantic-release/git - - - name: Semantic Release - run: semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - From b4562c18648bef66bf38ccdb1e050c3039b4b49c Mon Sep 17 00:00:00 2001 From: indirection42 Date: Tue, 5 Aug 2025 14:56:39 +0800 Subject: [PATCH 3/3] fix --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27ff3f1..d307e25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,7 +127,6 @@ jobs: if: | github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/') || - startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/tags/v') || contains(github.event.pull_request.labels.*.name, 'full-build') strategy: