Skip to content

Commit

Permalink
Switch back to visual studio
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jul 16, 2024
1 parent 45d52ff commit 883aa55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
compiler_package: g++-mingw-w64-i686
- os: windows
arch: aarch64
msys: aarch64
runner: windows-latest
exclude:
- os: macos
Expand All @@ -53,48 +52,37 @@ jobs:
- name: Setup GCC
if: ${{ matrix.compiler_package }}
run: sudo apt install -y ${{ matrix.compiler_package }}
- name: '${{ matrix.icon }} Setup MSYS2'
if: ${{ matrix.msys }}
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-clang-${{ matrix.msys }}-clang
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: Configure CMake
if: ${{ !matrix.msys }}
if: ${{ matrix.runner != 'windows-latest' }}
shell: bash
run: >
cmake -B cmakebuild
--toolchain="toolchains/${{ matrix.os }}-${{ matrix.arch }}.cmake"
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Configure CMake
if: ${{ matrix.msys }}
shell: msys2 {0}
if: ${{ matrix.runner == 'windows-latest' }}
shell: pwsh
run: >
cmake -B cmakebuild
--toolchain="toolchains/${{ matrix.os }}-${{ matrix.arch }}.cmake"
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Build
if: ${{ !matrix.msys }}
if: ${{ matrix.runner != 'windows-latest' }}
shell: bash
run: cmake --build cmakebuild --config ${{ matrix.build_type }}
- name: Build
if: ${{ matrix.msys }}
shell: msys2 {0}
if: ${{ matrix.runner == 'windows-latest' }}
shell: pwsh
run: cmake --build cmakebuild --config ${{ matrix.build_type }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.msys }}
if: ${{ matrix.runner == 'windows-latest' }}
with:
name: ${{ matrix.os }}-${{ matrix.arch }}
path: cmakebuild/${{ matrix.build_type }}/${{ matrix.libname }}
- uses: actions/upload-artifact@v4
if: ${{ !matrix.msys }}
if: ${{ matrix.runner != 'windows-latest' }}
with:
name: ${{ matrix.os }}-${{ matrix.arch }}
path: cmakebuild/${{ matrix.libname }}
Expand Down
7 changes: 3 additions & 4 deletions toolchains/windows-aarch64.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER /clangarm64/bin/clang)
set(CMAKE_CXX_COMPILER /clangarm64/bin/clang++)
set(CMAKE_C_FLAGS "-march=armv8-a")
set(CMAKE_CXX_FLAGS "-march=armv8-a")
set(CMAKE_C_COMPILER cl)
set(CMAKE_CXX_COMPILER cl)
set(CMAKE_GENERATOR_PLATFORM ARM64)

0 comments on commit 883aa55

Please sign in to comment.