mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-31 01:25:31 +00:00
Starting to create the CI for windows
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Build commit artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
Building:
|
||||
runs-on: [windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install the SFML.
|
||||
run: |
|
||||
Invoke-WebRequest -Uri https://www.sfml-dev.org/files/SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit.zip -OutFile sfml.zip
|
||||
Expand-Archive sfml.zip -DestinationPath . -Force
|
||||
Move-Item -Path SFML-2.5.1 -Destination build
|
||||
- name: Build Makefile with CMake
|
||||
run: |
|
||||
Set-Location build
|
||||
cmake .. -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND"
|
||||
- name: Build with Makefile
|
||||
run: mingw32-make -C build ComSquare
|
||||
- name: Copy shared libs
|
||||
run: Copy-Item -Path 'C:\Program Files\Git\mingw64\bin\*.dll' -Destination build
|
||||
- name: Archive production artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ComSquare-Windows
|
||||
path: build/
|
||||
Reference in New Issue
Block a user