Skip to content

Commit aaccf99

Browse files
committed
MDEV-36885 Windows/ARM64 - build and test on CI
Add corresponding workflow for Github Actions.
1 parent d665810 commit aaccf99

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build on Windows ARM64
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'bb-*'
8+
- '[0-9]+.[0-9]+'
9+
- '*wlad*'
10+
pull_request:
11+
12+
jobs:
13+
build:
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
runs-on: windows-11-arm
19+
20+
steps:
21+
- name: Configure git
22+
run: |
23+
# We won't be able to successfully run mtr
24+
# unless we configure autocrlf.
25+
git config --global core.autocrlf input
26+
27+
- uses: actions/checkout@v4
28+
29+
- name: Install prerequisites
30+
run: |
31+
# Install bison to compile
32+
choco install winflexbison3
33+
34+
- name: Build
35+
run: |
36+
# speedup checkout by excluding uninteresting modules
37+
git config submodule.storage/columnstore/columnstore.update none
38+
git config submodule.storage/maria/libmarias3.update none
39+
git config submodule.storage/rocksdb/rocksdb.update none
40+
git config submodule.wsrep-lib.update none
41+
mkdir bld
42+
cd bld
43+
cmake .. -DWITH_SSL=bundled
44+
cmake --build . --config RelWithDebinfo --verbose -- -m
45+
46+
- name: Test MTR
47+
run: |
48+
$env:PATH = "C:\Strawberry\perl\bin;$env:PATH;C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64"
49+
#Calculate parallel as 4 * number of processors
50+
$parallel = 4 * [int]$env:NUMBER_OF_PROCESSORS
51+
perl bld\mysql-test\mysql-test-run.pl --force --parallel=$parallel --suite=main --mysqld=--loose-innodb-flush-log-at-trx-commit=2

0 commit comments

Comments
 (0)