Update ci.yml #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build on CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13, macos-latest] | |
name: Deploy | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
- name: Install esy | |
run: npm install -g esy@dev | |
- uses: esy/github-action@6a5070d392db3e8c776724674737cab37c07263d | |
with: | |
source-cache-key: 20240624-1 | |
cache-key: ${{ hashFiles('esy.lock/index.json') }}-20240511-1 | |
esy-prefix: ${{ runner.os == 'Windows' && 'D:/.esy' || '' }} # Because projects and esy cache have to be on same drive on Windows otherwise we run into EXDEV/Invalid link issue. | |
- name: Export esy cache | |
run: esy export-dependencies | |
- uses: actions/[email protected] | |
with: | |
name: dependencies-cache-${{ matrix.os }} | |
path: _export | |