mirror of
https://github.com/ScintillaOrg/lexilla.git
synced 2025-05-09 03:11:32 +08:00
#308 Add ARM64 as second build to win32 workflow.
Since this is cross-compiling for ARM64, the tests can't run there so are omitted using the TEST environment variable. The CheckLexilla step can't run so is exceluded. An extra artifact lexilla-arm64.dll is uploaded although it should be renamed to lexilla.dll for use.
This commit is contained in:
parent
78ea4a5c9a
commit
e8a26430b3
17
.github/workflows/build-check-win32.yml
vendored
17
.github/workflows/build-check-win32.yml
vendored
@ -3,16 +3,24 @@ name: "Build and check Lexilla on Win32 with Visual C++"
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# Compile for amd64 and cross-compile for arm64. Tests run only for amd64.
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- amd64_arm64
|
||||||
|
env:
|
||||||
|
TEST: ${{ matrix.arch == 'amd64' && 'test' || '' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Preparing nmake
|
- name: Preparing nmake
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
with:
|
||||||
arch: x64
|
arch: ${{ matrix.arch }}
|
||||||
- name: Install Scintilla source
|
- name: Install Scintilla source
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
@ -24,7 +32,7 @@ jobs:
|
|||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
cd test/unit
|
cd test/unit
|
||||||
nmake -f test.mak DEBUG=1 test
|
nmake -f test.mak DEBUG=1 $env:TEST
|
||||||
cd ../..
|
cd ../..
|
||||||
- name: Build Lexilla
|
- name: Build Lexilla
|
||||||
run: |
|
run: |
|
||||||
@ -33,14 +41,15 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: lexilla.dll
|
name: lexilla${{ matrix.arch == 'amd64_arm64' && '-arm64' || '' }}.dll
|
||||||
path: bin/lexilla.dll
|
path: bin/lexilla.dll
|
||||||
- name: Test lexing and folding
|
- name: Test lexing and folding
|
||||||
run: |
|
run: |
|
||||||
cd test
|
cd test
|
||||||
nmake -f testlexers.mak DEBUG=1 test
|
nmake -f testlexers.mak DEBUG=1 $env:TEST
|
||||||
cd ..
|
cd ..
|
||||||
- name: CheckLexilla C Example
|
- name: CheckLexilla C Example
|
||||||
|
if: matrix.arch == 'amd64'
|
||||||
run: |
|
run: |
|
||||||
cd examples/CheckLexilla
|
cd examples/CheckLexilla
|
||||||
cl -MP CheckLexilla.c -I ../../include -Fe: CheckLexilla
|
cl -MP CheckLexilla.c -I ../../include -Fe: CheckLexilla
|
||||||
|
Loading…
x
Reference in New Issue
Block a user