Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/hakari.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ platforms = [
# "x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
]

# Write out exact versions rather than a semver range. (Defaults to false.)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ jobs:
runner: macos-latest
- target: x86_64-pc-windows-msvc
runner: windows-latest
- target: aarch64-pc-windows-msvc
runner: windows-latest
permissions:
contents: read
steps:
Expand Down Expand Up @@ -172,6 +174,8 @@ jobs:
runner: macos-latest
- target: x86_64-pc-windows-msvc
runner: windows-latest
- target: aarch64-pc-windows-msvc
runner: windows-latest
runs-on: ${{ matrix.settings.runner }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand Down Expand Up @@ -249,6 +253,8 @@ jobs:
runner: macos-latest
- target: x86_64-pc-windows-msvc
runner: windows-latest
- target: aarch64-pc-windows-msvc
runner: windows-latest
runs-on: ${{ matrix.settings.runner }}
steps:
- name: Checkout
Expand Down Expand Up @@ -278,7 +284,7 @@ jobs:
run: cargo check --all --release

- name: Run Clippy
if: ${{ matrix.settings.target == 'aarch64-apple-darwin' || matrix.settings.target == 'x86_64-pc-windows-msvc' }}
if: ${{ matrix.settings.target == 'aarch64-apple-darwin' || matrix.settings.target == 'x86_64-pc-windows-msvc' || matrix.settings.target == 'aarch64-pc-windows-msvc' }}
uses: actions-rs-plus/clippy-check@v2
with:
args: --workspace --all-features --locked
27 changes: 26 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
description: "Discord Interaction ID"
required: false
type: string
windowsTarget:
description: "Windows build target"
required: false
default: all
type: choice
options:
- all
- x64
- arm64

env:
CN_APPLICATION: cap/cap
Expand Down Expand Up @@ -129,7 +138,13 @@ jobs:

build:
needs: draft
if: ${{ needs.draft.outputs.needs_release == 'true' }}
if: ${{
needs.draft.outputs.needs_release == 'true' && (
matrix.settings.platform != 'windows' ||
inputs.windowsTarget == 'all' ||
inputs.windowsTarget == matrix.settings.arch
)
}}
permissions:
contents: write
actions: read
Expand All @@ -139,10 +154,20 @@ jobs:
settings:
- target: x86_64-apple-darwin
runner: macos-latest-xlarge
platform: macos
arch: x64
- target: aarch64-apple-darwin
runner: macos-latest-xlarge
platform: macos
arch: arm64
- target: x86_64-pc-windows-msvc
runner: windows-latest
platform: windows
arch: x64
- target: aarch64-pc-windows-msvc
runner: windows-latest
platform: windows
arch: arm64
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
Expand Down
37 changes: 37 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading