From 3ded13a5a70be02c3bc4445747d75bd6e094c4ac Mon Sep 17 00:00:00 2001 From: BryanFRD Date: Wed, 1 Apr 2026 07:41:54 +0000 Subject: [PATCH] fix(ci): build ferrflow from source instead of downloading from releases --- .ferrflow | 1 + .github/workflows/ci.yml | 11 ++++++++--- .github/workflows/release.yml | 29 ----------------------------- 3 files changed, 9 insertions(+), 32 deletions(-) diff --git a/.ferrflow b/.ferrflow index 764daa28..6059ecfe 100644 --- a/.ferrflow +++ b/.ferrflow @@ -2,6 +2,7 @@ "$schema": "https://ferrflow.com/schema/ferrflow.json", "workspace": { "tagTemplate": "v{version}", + "floatingTags": ["major"], "hooks": { "postBump": "node scripts/sync-optional-deps.js" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 055c1ab0..5999a1cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,11 +109,16 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.FERRFLOW_TOKEN }} + - uses: dtolnay/rust-toolchain@nightly + - uses: Swatinem/rust-cache@v2 - name: Configure git run: git remote set-url origin https://x-access-token:${{ secrets.FERRFLOW_TOKEN }}@github.com/${{ github.repository }} - - uses: FerrFlow-Org/ferrflow@v2 - with: - dry_run: ${{ inputs.dry_run }} + - name: Build ferrflow + run: cargo build --release + env: + FERRFLOW_HMAC_SECRET: ${{ secrets.FERRFLOW_HMAC_SECRET }} + - name: Run ferrflow release + run: ./target/release/ferrflow ${{ inputs.dry_run == 'true' && '--dry-run' || '' }} release env: FERRFLOW_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} GITHUB_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c8dadf1..bb0d5705 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -201,35 +201,6 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: bash npm/scripts/publish-wasm.sh "${{ steps.version.outputs.value }}" - update-major-tag: - name: Update major version tag - needs: release - runs-on: ubuntu-latest - concurrency: - group: update-major-tag - cancel-in-progress: false - permissions: - contents: write - steps: - - name: Resolve tag - id: tag - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - echo "name=${{ inputs.tag }}" >> $GITHUB_OUTPUT - else - echo "name=${{ github.ref_name }}" >> $GITHUB_OUTPUT - fi - - uses: actions/checkout@v6 - with: - ref: ${{ steps.tag.outputs.name }} - - name: Move major version tag - run: | - MAJOR="v$(echo "${TAG#v}" | cut -d. -f1)" - git tag -f "$MAJOR" - git push origin "refs/tags/$MAJOR" --force - env: - TAG: ${{ steps.tag.outputs.name }} - publish-docker: name: Publish Docker needs: release