Skip to content

Commit

Permalink
ci: installer, don't use matrix build, as it is only one config
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Oct 2, 2024
1 parent c459135 commit 06e7daf
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,30 @@ on:

jobs:
installer:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}-${{ matrix.config.os-version }}
name: Windows MSVC Installer
runs-on: windows-2022

strategy:
fail-fast: false
matrix:
config:
- name: Windows MSVC Installer
os: windows
os-version: 2022
msvc: true
buildtype: release
library_type: static
shell: pwsh
defaults:
run:
shell: ${{ matrix.config.shell }}
shell: pwsh

steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Setup MSVC (Windows)
if: matrix.config.os == 'windows' && matrix.config.msvc == true
uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
toolset: '14.41'

- name: Setup meson
if: matrix.config.os != 'macos'
run: |
pip install meson
- name: Configure
run: meson setup build -Dbuildtype=${{ matrix.config.buildtype }} -Ddefault_library=${{ matrix.config.library_type }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }} -Dbuild_installer=true
run: meson setup build -Dbuildtype=release -Ddefault_library=shared -Dbuild_installer=true

- name: Build
run: meson compile -C build
Expand All @@ -65,7 +52,6 @@ jobs:
- name: Upload artifacts - Windows
uses: actions/upload-artifact@v4
if: matrix.config.os == 'windows'
with:
name: ${{ matrix.config.name }}
name: OOpetris Setup
path: tools/installer/OOPetris Setup.exe

0 comments on commit 06e7daf

Please sign in to comment.