Skip to content

fix: use cached beatmap instead of opening it each time #309

fix: use cached beatmap instead of opening it each time

fix: use cached beatmap instead of opening it each time #309

Workflow file for this run

name: build & deploy
on:
push:
branches: [ "master" ]
tags:
- "v*"
paths:
- "packages/**/*"
- "package.json"
- "pnpm-lock.yaml"
pull_request:
paths:
- "packages/**/*"
- "package.json"
- "pnpm-lock.yaml"
concurrency:
group: build-${{ github.sha }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
strategy:
matrix:
os: [ windows-latest ]
runs-on: ${{ matrix.os }}
name: "build for ${{ matrix.os }}"
steps:
- name: 🛎️ - Checkout
uses: actions/checkout@v3
- name: 📐 - Define variables (1)
if: github.event_name == 'pull_request'
id: set-pr-sha
shell: bash
run: echo "SHORT_PR_SHA=$(git rev-parse HEAD | cut -c 1-7)" >> "$GITHUB_OUTPUT"
- name: 🛠️ - Install Node
uses: actions/setup-node@v3
with: { node-version: 18 }
- name: 🛠️ - Install Rust
uses: ATiltedTree/setup-rust@v1
with: { rust-version: stable, components: clippy }
- name: 🛠️ - Install Deps
run: npm install -g pnpm@^8 && pnpm install --frozen-lockfile
- name: 📦 - Build
run: pnpm build
- name: 🚀 - Upload artifacts for windows
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with: {
name: "tosu-${{ matrix.os }}-${{ steps.set-pr-sha.outputs.SHORT_PR_SHA || github.ref_name }}",
path: packages/tosu/dist/tosu.exe
}
# - name: 🚀 - Upload artifacts for linux
# if: matrix.os == 'ubuntu-latest'
# uses: actions/upload-artifact@v3
# with: {
# name: "${{ steps.set-artifact-name.outputs.ARTIFACT_NAME }}",
# path: packages/tosu/dist/tosu.exe
# }
# - name: 🚀 - Upload artifacts for mac
# if: matrix.os == 'macos-latest'
# uses: actions/upload-artifact@v3
# with: {
# name: "${{ steps.set-artifact-name.outputs.ARTIFACT_NAME }}",
# path: packages/tosu/dist/tosu.exe
# }