Merge pull request #240 from JuliaMath/vs/msys

Update ci.yml for Windows and msys2
This commit is contained in:
Viral B. Shah 2021-09-08 20:57:11 -04:00 committed by GitHub
commit 6ea5fa2408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@ on:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -19,13 +18,34 @@ jobs:
- windows-latest - windows-latest
arch: arch:
- x64 - x64
- x32 - x86
- armv7 - armv7
- aarch64 - aarch64
exclude:
- os: windows-latest
arch: aarch64
- os: windows-latest
arch: armv7
- os: windows-latest
arch: x86
- os: macos-latest
arch: armv7
- os: macos-latest
arch: x86
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: make - name: Install i686-w64-mingw32-gcc
run: make if: ${{ matrix.os == 'windows-latest' && matrix.arch == 'x86' }}
- name: make test shell: bash
run: make test run: |
choco install mingw -y --x86 --force --params "/exception:sjlj"
choco install make -y
echo "CC=i686-w64-mingw32-gcc" >> "${GITHUB_ENV}"
- name: Set compiler for 64-bit Windows
if: ${{ matrix.os == 'windows-latest' && matrix.arch == 'x64' }}
shell: bash
run: |
echo "CC=x86_64-w64-mingw32-gcc" >> "${GITHUB_ENV}"
- name: Build and run tests
run: make && make test