Skip to content

Commit

Permalink
👷 Use cross for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Feb 22, 2024
1 parent 42739a2 commit 1ff15a5
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@ jobs:
# TOOLCHAIN: stable,
# TARGET: x86_64-unknown-linux-gnu,
# }
- {
NAME: linux-arm64-glibc,
OS: ubuntu-20.04,
TOOLCHAIN: stable,
TARGET: aarch64-unknown-linux-gnu,
}
- {
NAME: win32-x64-msvc,
OS: windows-2022,
TOOLCHAIN: stable,
TARGET: x86_64-pc-windows-msvc,
# - {
# NAME: linux-arm64-glibc,
# OS: ubuntu-20.04,
# TOOLCHAIN: stable,
# TARGET: aarch64-unknown-linux-gnu,
# }
# - {
# NAME: win32-x64-msvc,
# OS: windows-2022,
# TOOLCHAIN: stable,
# TARGET: x86_64-pc-windows-msvc,
}
- {
NAME: win32-arm64-msvc,
OS: windows-2022,
TOOLCHAIN: stable,
TARGET: aarch64-pc-windows-msvc,
}
- {
NAME: darwin-x64,
OS: macos-11,
TOOLCHAIN: stable,
TARGET: x86_64-apple-darwin,
}
- {
NAME: darwin-arm64,
OS: macos-11,
TOOLCHAIN: stable,
TARGET: aarch64-apple-darwin,
# - {
# NAME: darwin-x64,
# OS: macos-11,
# TOOLCHAIN: stable,
# TARGET: x86_64-apple-darwin,
# }
# - {
# NAME: darwin-arm64,
# OS: macos-11,
# TOOLCHAIN: stable,
# TARGET: aarch64-apple-darwin,
}
steps:
- name: Checkout
Expand All @@ -69,7 +69,7 @@ jobs:
with:
command: build
args: --manifest-path=cli/Cargo.toml --release --locked --target ${{ matrix.build.TARGET }}
use-cross: ${{ matrix.build.OS == 'ubuntu-20.04' }} # use `cross` for Linux builds
use-cross: true # use `cross` for Linux builds

- uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit 1ff15a5

Please sign in to comment.