diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af387c5..92223b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,7 @@ jobs: - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" + cache: npm - name: Install tools run: | @@ -134,6 +135,7 @@ jobs: - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" + cache: npm - name: Install npm dependencies run: npm ci diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 3ab8835..a1bd67f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -75,26 +75,21 @@ jobs: build: needs: [check, ci] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest timeout-minutes: 20 strategy: fail-fast: false matrix: include: - - os: ubuntu-latest - goos: linux + - goos: linux goarch: amd64 - - os: ubuntu-latest - goos: linux + - goos: linux goarch: arm64 - - os: macos-latest - goos: darwin + - goos: darwin goarch: arm64 - - os: macos-latest - goos: darwin + - goos: darwin goarch: amd64 - - os: windows-latest - goos: windows + - goos: windows goarch: amd64 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c77692b..98415ff 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -35,9 +35,20 @@ jobs: with: go-version: "1.26" + - name: Cache Go build + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: ~/.cache/go-build + key: go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}-${{ github.sha }} + restore-keys: | + go-build-${{ runner.os }}-${{ hashFiles('go.sum') }}- + go-build-${{ runner.os }}- + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: "24" + cache: npm + cache-dependency-path: website/package-lock.json - name: Build WASM run: |