diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1e1fc31..15d2d9f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,6 +19,13 @@ jobs: name: build runs-on: inseven-macos-26 + env: + + MISE_CACHE_DIR: ${{ github.workspace }}/.mise/cache + MISE_CONFIG_DIR: ${{ github.workspace }}/.mise/config + MISE_DATA_DIR: ${{ github.workspace }}/.mise/data + MISE_STATE_DIR: ${{ github.workspace }}/.mise/state + steps: - name: Checkout repository @@ -26,17 +33,18 @@ jobs: with: fetch-depth: 0 - # Ensure we're using the latest version of mise in an attempt to catch upstream errors early. - - name: Get the latest mise version - id: mise - run: echo "version=$(curl -fsSL https://mise.jdx.dev/VERSION)" >> "$GITHUB_OUTPUT" + - name: Cache mise + id: cache-mise + uses: actions/cache@v6 + with: + path: .mise + key: ${{ runner.os }}-${{ runner.arch }}-mise--${{ hashFiles('mise.toml') }} - name: Install mise - uses: jdx/mise-action@v4 + uses: jdx/mise-action@v4.3.0 with: - version: ${{ steps.mise.outputs.version }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + version: 2026.9.10 + cache: false - name: Build run: exec ./scripts/build.sh