Skip to content

Commit

Permalink
Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GinOwO committed Sep 30, 2023
1 parent 9b8e33e commit 151d35a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/c-cpp-build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
QT_VERSION: "6.5.0"
BUILD_TYPE: Release
COMPILER: gcc_64
BUILD_GEN: "Ninja Multi-Config"
BUILD_GEN: "Ninja"
COMPILER_PATH: ${{github.workspace}}/qt/Qt/6.5.0/gcc_64

jobs:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/c-cpp-build-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Windows

on:
push:
branches:
- main

env:
QT_VERSION: "6.5.0"
BUILD_TYPE: Release
COMPILER: mingw64
BUILD_GEN: "Ninja"

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up MSYS2
uses: msys2/setup-msys2@v2

- name: Install Qt
run: |
pacman -Sy --noconfirm --needed mingw-w64-x86_64-qt6
export PATH="/c/msys64/mingw64/bin:$PATH"
- name: Install Ninja
run: |
pacman -Sy --noconfirm --needed mingw-w64-x86_64-ninja
- name: Build
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw64.cmake ..
cmake --build . --config ${{ env.BUILD_TYPE }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LuX
[![LICENSE](https://img.shields.io/github/license/KThankYou/MazeSolver?color=blue)](LICENSE) ![Language](https://img.shields.io/badge/Language-C%2B%2B-brightgreen) ![Qt](https://img.shields.io/badge/Qt-6.5.0-brightgreen) ![GitHub csize](https://img.shields.io/github/languages/code-size/KThankYou/MazeSolver)
[![LICENSE](https://img.shields.io/github/license/KThankYou/MazeSolver?color=blue)](LICENSE) ![Language](https://img.shields.io/badge/Language-C%2B%2B-brightgreen) ![Qt](https://img.shields.io/badge/Qt-6.5.0-brightgreen) ![GitHub csize](https://img.shields.io/github/languages/code-size/KThankYou/MazeSolver) [![Build Linux](https://github.com/GinOwO/LuX/actions/workflows/c-cpp-build-linux.yaml/badge.svg?branch=main&event=push)](https://github.com/GinOwO/LuX/actions/workflows/c-cpp-build-linux.yaml)

## Description

Expand Down

0 comments on commit 151d35a

Please sign in to comment.