Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add windows build GitHub Actions CI #260

Merged
merged 1 commit into from
Oct 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ push, pull_request]

jobs:
# This workflow contains a single job called "build"
build:
build-ubuntu:
# The type of runner that the job will run on
runs-on: ubuntu-18.04

Expand All @@ -28,7 +28,40 @@ jobs:
cmake ..
make

build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v2

- name: Install Dependencies
uses: msys2/setup-msys2@v2
with:
install: >-
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-ninja
mingw-w64-x86_64-SDL2
msystem: mingw64
release: false

- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: "5.12.11"
host: "windows"
target: "desktop"
arch: "win64_mingw73"
dir: "${{github.workspace}}/qt/"
install-deps: "true"

- name: Configure CMake
env:
CMAKE_PREFIX_PATH: ${{env.Qt5_Dir}}
run: cmake -DCMAKE_BUILD_TYPE=Debug -B '${{github.workspace}}'/build

- name: Build
run: cmake --build '${{github.workspace}}'/build