Skip to content

Commit

Permalink
ci: specify toolchain when adding target
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jan 28, 2024
1 parent 48a95ea commit 03d8081
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
matrix:
settings:
# MacOS (Intel)
- platform: 'macos-latest'
target: 'x86_64-apple-darwin'
- platform: macos-latest
target: x86_64-apple-darwin
# MacOS (Apple Silicon)
- platform: 'macos-latest'
target: 'aarch64-apple-darwin'
- platform: macos-latest
target: aarch64-apple-darwin
# 64-bit Linux
- platform: 'ubuntu-22.04'
target: 'x86_64-unknown-linux-gnu'
- platform: ubuntu-22.04
target: x86_64-unknown-linux-gnu
# 64-bit Windows
- platform: 'windows-latest'
target: 'x86_64-pc-windows-msvc'
- platform: windows-latest
target: x86_64-pc-windows-msvc
# 32-bit Windows
- platform: 'windows-latest'
target: 'i686-pc-windows-msvc'
- platform: windows-latest
target: i686-pc-windows-msvc

runs-on: ${{ matrix.settings.platform }}
steps:
Expand All @@ -43,11 +43,11 @@ jobs:

- run: |
rustup toolchain install stable --profile minimal
rustup target add ${{ matrix.settings.target }}
rustup target add ${{ matrix.settings.target }} --toolchain stable
- uses: swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
with:
workspaces: ./packages/desktop
workspaces: packages/desktop

- name: Install dependencies (Ubuntu)
if: matrix.settings.platform == 'ubuntu-22.04'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
gh-token: ${{ secrets.GITHUB_TOKEN }}
gh-draft-release: false
npm-publish: true
npm-package-root: 'packages/client-api'
npm-package-root: packages/client-api

0 comments on commit 03d8081

Please sign in to comment.