Added Gitea Actions
This commit is contained in:
parent
ef06621b5e
commit
adf31228e1
|
|
@ -0,0 +1,44 @@
|
||||||
|
name: findwindow build main
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-debug:
|
||||||
|
runs-on: ubuntu-mingw-cmake-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Configure Debug
|
||||||
|
run: |
|
||||||
|
cmake -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_BUILD_TYPE=Debug -B cmake-build-debug
|
||||||
|
- name: build
|
||||||
|
run: |
|
||||||
|
make -C cmake-build-debug
|
||||||
|
- name: Save artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: findwindow-debug.exe
|
||||||
|
path: cmake-build-debug/findwindow.exe
|
||||||
|
|
||||||
|
build-release:
|
||||||
|
runs-on: ubuntu-mingw-cmake-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Configure Release
|
||||||
|
run: |
|
||||||
|
cmake -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_BUILD_TYPE=Release -B cmake-build-release
|
||||||
|
- name: build
|
||||||
|
run: |
|
||||||
|
make -C cmake-build-release
|
||||||
|
- name: Save artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: findwindow.exe
|
||||||
|
path: cmake-build-release/findwindow.exe
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.31)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
project(findwindow)
|
project(findwindow)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue