Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
38 changes: 35 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:

build_windows:
name: Build Windows
runs-on: windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 40
needs: [get_version]

Expand All @@ -152,16 +152,25 @@ jobs:

strategy:
matrix:
arch: [x64]
arch: [x64, arm64]
flavor: [debug, release]
include:
- arch: x64
rust_target_prefix: x86_64
os: windows-latest
- arch: arm64
rust_target_prefix: aarch64
os: windows-11-arm

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install dependencies (Windows)
run: |
vcpkg install zeromq:${{ matrix.arch }}-windows
shell: cmd

- name: Compile Kallichore
env:
Kallichore_BUILD_TYPE: ${{ matrix.flavor }}
Expand Down Expand Up @@ -246,6 +255,11 @@ jobs:
with:
name: kallichore-${{ matrix.flavor }}-windows-x64-archive

- name: Download Kallichore for Windows arm64 (${{ matrix.flavor}})
uses: actions/download-artifact@v4
with:
name: kallichore-${{ matrix.flavor }}-windows-arm64-archive

- name: Download Kallichore for Linux x64 (${{ matrix.flavor}})
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -317,6 +331,16 @@ jobs:
asset_name: kallichore-${{ env.RELEASE_TAG }}${{ env.DEBUG_FLAG }}-windows-x64.zip
asset_content_type: application/octet-stream

- name: Upload Windows release artifact (arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: kallichore-${{ env.RELEASE_TAG }}-${{ matrix.flavor }}-windows-arm64.zip
asset_name: kallichore-${{ env.RELEASE_TAG }}${{ env.DEBUG_FLAG }}-windows-arm64.zip
asset_content_type: application/octet-stream

- name: Upload Linux release artifacts (x64)
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -382,13 +406,20 @@ jobs:
file: kallichore-${{ env.RELEASE_TAG }}-linux-arm64.zip
token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Windows release
- name: Download Windows release (x64)
uses: dsaltares/fetch-gh-release-asset@1.1.2
with:
version: tags/${{ env.RELEASE_TAG }}
file: kallichore-${{ env.RELEASE_TAG }}-windows-x64.zip
token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Windows release (arm64)
uses: dsaltares/fetch-gh-release-asset@1.1.2
with:
version: tags/${{ env.RELEASE_TAG }}
file: kallichore-${{ env.RELEASE_TAG }}-windows-arm64.zip
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create access token
uses: actions/create-github-app-token@v1
id: app-token
Expand Down Expand Up @@ -416,6 +447,7 @@ jobs:
kallichore-${{ env.RELEASE_TAG }}-darwin-arm64.zip
kallichore-${{ env.RELEASE_TAG }}-darwin-x64.zip
kallichore-${{ env.RELEASE_TAG }}-windows-x64.zip
kallichore-${{ env.RELEASE_TAG }}-windows-arm64.zip
kallichore-${{ env.RELEASE_TAG }}-linux-x64.zip
kallichore-${{ env.RELEASE_TAG }}-linux-arm64.zip

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ jobs:
include:
- os: ubuntu-latest
platform: linux
arch: x64
- os: windows-11-arm
platform: windows
arch: arm64
- os: windows-latest
platform: windows
arch: x64
- os: [self-hosted-staging, macos, arm64]
platform: macos
arch: arm64

steps:
- name: Checkout sources
Expand Down Expand Up @@ -54,7 +60,7 @@ jobs:
- name: Install dependencies (Windows)
if: matrix.platform == 'windows'
run: |
vcpkg install zeromq:x64-windows
vcpkg install zeromq:${{ matrix.arch }}-windows
shell: cmd

- name: Cache cargo registry
Expand All @@ -71,4 +77,4 @@ jobs:
- name: Run tests
run: cargo test --verbose --all
env:
RUST_BACKTRACE: 1
RUST_BACKTRACE: 1
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/kcserver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcserver"
version = "0.1.55"
version = "0.1.56"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
Expand Down
Loading