Skip to content

Commit

Permalink
ci(windows): add msvc x64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Mar 8, 2024
1 parent 8b7938b commit a767f9a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
fail-fast: false
matrix:
compiler: [msvc, clang]
arch: [x64]
include:
- { compiler: msvc, cc: cl, cxx: cl }
- { compiler: clang, cc: clang, cxx: clang++ }
- { compiler: msvc, arch: x86, cross_arch: x64_x86 }
env:
boost_version: 1.84.0
BOOST_ROOT: ${{ github.workspace }}\deps\boost-1.84.0
Expand Down Expand Up @@ -47,7 +49,7 @@ jobs:
if: ${{ matrix.compiler == 'msvc' }}
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
arch: ${{ matrix.cross_arch || matrix.arch }}

- name: Configure Ninja
run: pip install ninja
Expand All @@ -68,7 +70,7 @@ jobs:
with:
path: |
${{ env.BOOST_ROOT }}.7z
key: ${{ runner.os }}-boost-${{ env.boost_version }}-${{ matrix.compiler }}-src
key: ${{ runner.os }}-boost-${{ env.boost_version }}-src

- name: Download Boost source
if: steps.cache-boost-src.outputs.cache-hit != 'true'
Expand All @@ -93,7 +95,7 @@ jobs:
include
lib
share
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ hashFiles('submodule-status') }}
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}-${{ hashFiles('submodule-status') }}

- name: Build dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
Expand All @@ -107,17 +109,17 @@ jobs:

- name: Create distributable
run: |
7z a rime-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}.7z `
7z a rime-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}.7z `
dist version-info.txt
7z a -x'!*/.placeholder' rime-deps-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}.7z `
7z a -x'!*/.placeholder' rime-deps-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}.7z `
bin include lib share
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: |
rime-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}.7z
rime-deps-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}.7z
rime-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}.7z
rime-deps-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}.7z
build-mingw:
runs-on: windows-latest
Expand Down

0 comments on commit a767f9a

Please sign in to comment.