Skip to content

Commit

Permalink
test 6
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Sep 2, 2024
1 parent a1ed35d commit 245ebb2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
shell: "msys2 {0}",
msystem: ucrt64,
msys-env: mingw-w64-ucrt-x86_64,
artifact-path: build/*.zip,
}
- {
name: "Linux GCC",
Expand All @@ -33,13 +34,13 @@ jobs:
extra_options: "-G Ninja",
package_name: "linux_gcc",
shell: bash,
artifact-path: build/*.appimage,
}
- {
name: "macOS Clang",
os: macos-latest,
build_type: "Release",
extra_options: "-G Ninja",
package_name: "macos",
shell: bash,
}

Expand Down Expand Up @@ -143,23 +144,23 @@ jobs:
- name: Build
run: cmake --build build --config ${{ matrix.config.build_type }}

- name: Package (Windows)
if: runner.os == 'Windows'
- name: Package
if: ${{ matrix.config.package_name }}
run: |
cd build
cpack -G ZIP
cpack
- name: Upload Artifacts
if: ${{ matrix.config.name == 'MSYS2 UCRT64' }}
if: ${{ matrix.config.package_name }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.package_name }}
path: build/*.zip
path: ${{ matrix.config.artifact-path }}

- name: Release
if: ${{ contains(github.ref, 'tags') && matrix.config.name == 'MSYS2 UCRT64' }}
if: ${{ contains(github.ref, 'tags') && matrix.config.package_name }}
uses: ncipollo/release-action@v1
with:
name: ${{ github.ref_name }}
allowUpdates: true
artifacts: build/*.zip
artifacts: ${{ matrix.config.artifact-path }}

0 comments on commit 245ebb2

Please sign in to comment.