Skip to content

Commit

Permalink
CI: build and test 32-bit Windows VS Code extension
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Sep 9, 2021
1 parent 9cd6ae1 commit 82a9261
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build-and-test-plugin-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
fail-fast: false
matrix:
os:
- {runs_on: macos-10.15, name: "macOS", archive_name: "macos", CC: /usr/local/opt/llvm/bin/clang, CXX: /usr/local/opt/llvm/bin/clang++, CFLAGS: "-isystem /usr/local/opt/llvm/include -isystem /usr/local/opt/llvm/include/c++/v1 -mmacosx-version-min=10.9 -D_LIBCPP_DISABLE_AVAILABILITY", LDFLAGS: "-L/usr/local/opt/llvm/lib -mlinker-version=278 -nostdlib++ /usr/local/opt/llvm/lib/libc++.a /usr/local/opt/llvm/lib/libc++abi.a"}
- {runs_on: ubuntu-latest, name: "Linux", archive_name: "linux", CC: gcc-8, CXX: g++-8, LDFLAGS: "-static-libgcc -static-libstdc++"}
- {runs_on: windows-latest, name: "Windows", archive_name: "windows", CMAKE_FLAGS: "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded"}
- {runs_on: macos-10.15, name: "macOS", platform_arch: "darwin-x64", CC: /usr/local/opt/llvm/bin/clang, CXX: /usr/local/opt/llvm/bin/clang++, CFLAGS: "-isystem /usr/local/opt/llvm/include -isystem /usr/local/opt/llvm/include/c++/v1 -mmacosx-version-min=10.9 -D_LIBCPP_DISABLE_AVAILABILITY", LDFLAGS: "-L/usr/local/opt/llvm/lib -mlinker-version=278 -nostdlib++ /usr/local/opt/llvm/lib/libc++.a /usr/local/opt/llvm/lib/libc++abi.a"}
- {runs_on: ubuntu-latest, name: "Linux", platform_arch: "linux-x64", CC: gcc-8, CXX: g++-8, LDFLAGS: "-static-libgcc -static-libstdc++"}
- {runs_on: windows-latest, name: "Windows (32-bit)", platform_arch: "win32-ia32", CMAKE_FLAGS: "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -A Win32"}
- {runs_on: windows-latest, name: "Windows (64-bit)", platform_arch: "win32-x64", CMAKE_FLAGS: "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -A x64"}
runs-on: ${{ matrix.os.runs_on }}
container: ${{ fromJSON('["", "ghcr.io/quick-lint/quick-lint-js-github-builder:v1"]')[matrix.os.runs_on == 'ubuntu-latest'] }}
env:
Expand Down Expand Up @@ -47,16 +48,16 @@ jobs:
run: cd plugin/vscode && yarn
- name: JS test
# NOTE(strager): We test on Linux in the build-extension job.
if: ${{ matrix.os.archive_name != 'linux' }}
if: ${{ matrix.os.platform_arch != 'linux-x64' }}
run: |
cd plugin/vscode
yarn test
yarn test --target ${{ matrix.os.platform_arch }}
- name: upload build to workflow
uses: actions/upload-artifact@v2
with:
if-no-files-found: error
name: vscode-dist-${{ matrix.os.archive_name }}
name: vscode-dist-${{ matrix.os.platform_arch }}
path: plugin/vscode/dist/

build-extension:
Expand All @@ -72,15 +73,19 @@ jobs:

- uses: actions/download-artifact@v2
with:
name: vscode-dist-linux
name: vscode-dist-linux-x64
path: ./plugin/vscode/dist/
- uses: actions/download-artifact@v2
with:
name: vscode-dist-macos
name: vscode-dist-darwin-x64
path: ./plugin/vscode/dist/
- uses: actions/download-artifact@v2
with:
name: vscode-dist-windows
name: vscode-dist-win32-ia32
path: ./plugin/vscode/dist/
- uses: actions/download-artifact@v2
with:
name: vscode-dist-win32-x64
path: ./plugin/vscode/dist/

- name: JS configure
Expand All @@ -100,7 +105,7 @@ jobs:
printf 'Started Xvfb\n' >&2
cd plugin/vscode
yarn test
yarn test --target linux-x64
kill %1
wait || :
Expand Down

0 comments on commit 82a9261

Please sign in to comment.