diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-20 11:54:25 -0400 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-20 11:54:25 -0400 | 
| commit | a62d9afaf53ba6cea1ee3522aeef26c788545f48 (patch) | |
| tree | 81b0f8d6b207fe606945f1a93f269cb626931689 | |
| parent | 0daf95eb7359d0f7a71ec5765a414c0c2eb3cfa5 (diff) | |
| download | ohmycal-a62d9afaf53ba6cea1ee3522aeef26c788545f48.tar.gz | |
Windows CI
| -rw-r--r-- | .github/workflows/cmake-multi-platform.yml | 59 | 
1 files changed, 21 insertions, 38 deletions
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index b5094e7..f289c83 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -7,44 +7,7 @@ on:      branches: [ "master" ]  jobs: -  build-windows: -    runs-on: ${{ matrix.os }} - -    strategy: -      fail-fast: false - -      matrix: -        os: [windows-latest] -        build_type: [RelWithDebInfo] -        sys: -          - mingw64 - -    name: ${{ matrix.sys }} -    defaults: -      run: -        shell: msys2 {0} -    steps: -      - name: 'Checkout' -        uses: actions/checkout@v4 - -      - name: 'Setup MSYS2 ${{ matrix.sys }}' -        uses: msys2/setup-msys2@v2 -        with: -          msystem: ${{matrix.sys}} -          install: >- -            git -            make -          pacboy: >- -            toolchain:p -            cmake:p -            libxml2:p -            libcurl:p -      - name: 'Build' -        run: | -          cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}  -          cmake --build build - -  build-nix: +  build:      runs-on: ${{ matrix.os }}      strategy: @@ -54,6 +17,7 @@ jobs:          os: [ubuntu-latest, macos-latest, windows-latest]          build_type: [RelWithDebInfo]          c_compiler: [gcc, clang] +        c_win_sys: [mingw64]          include:            - os: macos-latest              c_compiler: clang @@ -65,6 +29,11 @@ jobs:            - os: macos-latest              c_compiler: gcc +    defaults: +      if: matrix.os == 'windows-latest' +      run: +        shell: msys2 {0} +      steps:      - uses: actions/checkout@v4 @@ -79,6 +48,20 @@ jobs:        run: >          sudo apt install -y libcurl4-openssl-dev libxml2-dev rsync +    - name: 'Install MSYS2 ${{ matrix.sys }} dependencies' +      if: matrix.os == 'windows-latest' +      shell: msys2 {0} +      uses: msys2/setup-msys2@v2 +      with: +        msystem: ${{matrix.c_win_sys}} +        install: >- +          git +          make +        pacboy: >- +          toolchain:p +          cmake:p +          libxml2:p +      - name: Configure CMake        run: >          cmake -B ${{ steps.strings.outputs.build-output-dir }}  | 
