Skip to content

Commit

Permalink
Combine Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
GinOwO committed Sep 30, 2023
1 parent 93f85b4 commit fec72e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 46 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/c-cpp-build-windows.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Build Linux
name: Build

on:
push:
branches:
- main

env:
QT_VERSION: "6.5.0"
BUILD_TYPE: Release
COMPILER: gcc_64
BUILD_GEN: "Ninja"
COMPILER_PATH: ${{github.workspace}}/qt/Qt/6.5.0/gcc_64
- BUILD_TYPE: Release
- BUILD_GEN: "Ninja"

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout code
Expand All @@ -24,9 +25,14 @@ jobs:
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
- name: Install Ninja

- name: Install Ninja on Linux
run: sudo apt-get install ninja-build
if: matrix.os == 'ubuntu-latest'

- name: Install Ninja on Windows
run: choco install ninja
if: matrix.os == 'windows-latest'

- name: Build
run: cmake -S . -B build -G "${{ env.BUILD_GEN }}" && cmake --build build --config ${{ env.BUILD_TYPE }}

0 comments on commit fec72e8

Please sign in to comment.