CI fix #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SAFOR | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- develop-* | |
pull_request: | |
branches: | |
- master | |
- develop | |
workflow_dispatch: | |
jobs: | |
build: | |
name: build | |
runs-on: 'windows-2019' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
- name: Dummy | |
run: timeout 1000 | |
- name: Build 32 bit resource | |
run: windres.exe --input SAFOR32.rc --output SAFOR32.res --output-format=coff --target pe-i386 | |
- name: Build 64 bit resource | |
run: windres.exe --input SAFOR64.rc --output SAFOR64.res --output-format=coff --target pe-x86-64 | |
- name: Build 64 bit executable | |
run: g++ SAFOR.cpp -o SAFOR64.exe SAFOR64.res -msse2 -Ofast -m64 -std=c++17 -I"." -static -lgdi32 -lcomdlg32 -luuid -luxtheme -lcomctl32 -s | |
#- name: Build 32 bit executable | |
# run: C:\msys64\mingw32\bin\i686-w64-mingw32-g++ SAFOR.cpp -o SAFOR32.exe SAFOR32.res -msse2 -Ofast -m32 -std=c++17 -I"." -static -lgdi32 -lcomdlg32 -luuid -luxtheme -lcomctl32 -s | |
- name: Upload preps | |
run: | | |
dir | |
mkdir prebuilt | |
move SAFOR64.exe prebuilt/SAFOR64.exe | |
# move SAFOR32.exe prebuilt/SAFOR32.exe | |
- uses: actions/upload-artifact@v4 | |
name: Upload Artifact | |
with: | |
name: SAFOR Cloud Build | |
path: prebuilt |