Skip to content

Commit 04de43c

Browse files
committed
Add CI build for windows/ARM64
Tests and other steps that execute the binary are skipped, because the project is built on an x86_64 Windows host machine and thus can't run arm64 instructions. Fixes: #2644
1 parent 487ac3b commit 04de43c

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/CICD.yml

+17-13
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,20 @@ jobs:
164164
fail-fast: false
165165
matrix:
166166
job:
167-
- { target: aarch64-unknown-linux-musl , os: ubuntu-20.04, dpkg_arch: arm64, use-cross: true }
168-
- { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04, dpkg_arch: arm64, use-cross: true }
169-
- { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04, dpkg_arch: armhf, use-cross: true }
170-
- { target: arm-unknown-linux-musleabihf, os: ubuntu-20.04, dpkg_arch: musl-linux-armhf, use-cross: true }
171-
- { target: i686-pc-windows-msvc , os: windows-2019, }
172-
- { target: i686-unknown-linux-gnu , os: ubuntu-20.04, dpkg_arch: i686, use-cross: true }
173-
- { target: i686-unknown-linux-musl , os: ubuntu-20.04, dpkg_arch: musl-linux-i686, use-cross: true }
174-
- { target: x86_64-apple-darwin , os: macos-13, }
175-
- { target: aarch64-apple-darwin , os: macos-14, }
176-
- { target: x86_64-pc-windows-gnu , os: windows-2019, }
177-
- { target: x86_64-pc-windows-msvc , os: windows-2019, }
178-
- { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04, dpkg_arch: amd64, use-cross: true }
179-
- { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, dpkg_arch: musl-linux-amd64, use-cross: true }
167+
- { target: aarch64-unknown-linux-musl , os: ubuntu-20.04, dpkg_arch: arm64, use-cross: true }
168+
- { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04, dpkg_arch: arm64, use-cross: true }
169+
- { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04, dpkg_arch: armhf, use-cross: true }
170+
- { target: arm-unknown-linux-musleabihf, os: ubuntu-20.04, dpkg_arch: musl-linux-armhf, use-cross: true }
171+
- { target: i686-pc-windows-msvc , os: windows-2019, }
172+
- { target: i686-unknown-linux-gnu , os: ubuntu-20.04, dpkg_arch: i686, use-cross: true }
173+
- { target: i686-unknown-linux-musl , os: ubuntu-20.04, dpkg_arch: musl-linux-i686, use-cross: true }
174+
- { target: x86_64-apple-darwin , os: macos-13, }
175+
- { target: aarch64-apple-darwin , os: macos-14, }
176+
- { target: x86_64-pc-windows-gnu , os: windows-2019, }
177+
- { target: x86_64-pc-windows-msvc , os: windows-2019, }
178+
- { target: aarch64-pc-windows-msvc , os: windows-latest , skip-run: true }
179+
- { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04, dpkg_arch: amd64, use-cross: true }
180+
- { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, dpkg_arch: musl-linux-amd64, use-cross: true }
180181
env:
181182
BUILD_CMD: cargo
182183
steps:
@@ -250,6 +251,7 @@ jobs:
250251
251252
- name: Run tests
252253
shell: bash
254+
if: matrix.job.skip-run != true
253255
run: |
254256
if [[ ${{ matrix.job.os }} = windows-* ]]
255257
then
@@ -260,10 +262,12 @@ jobs:
260262
261263
- name: Run bat
262264
shell: bash
265+
if: matrix.job.skip-run != true
263266
run: $BUILD_CMD run --locked --target=${{ matrix.job.target }} -- --paging=never --color=always --theme=ansi Cargo.toml src/config.rs
264267

265268
- name: Show diagnostics (bat --diagnostic)
266269
shell: bash
270+
if: matrix.job.skip-run != true
267271
run: $BUILD_CMD run --locked --target=${{ matrix.job.target }} -- --paging=never --color=always --theme=ansi Cargo.toml src/config.rs --diagnostic
268272

269273
- name: "Feature check: regex-onig"

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# unreleased
22

33
## Features
4+
- Add build for windows/ARM64 platform. #2644 (@Raghav-Bell, @alcroito)
45

56
## Bugfixes
67
- Fix `BAT_THEME_DARK` and `BAT_THEME_LIGHT` being ignored, see issue #3171 and PR #3168 (@bash)

0 commit comments

Comments
 (0)