Skip to content

Commit

Permalink
Create mingw github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Mar 24, 2020
1 parent 00c5f1c commit 4881d68
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Mingw-w64 Cross CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: setup mingw
run: |
sudo apt update
sudo apt install gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
- name: make
run: |
mkdir out
x86_64-w64-mingw32-gcc -std=c99 --pedantic -Wall -Wno-implicit-function-declaration --static main.c -lshlwapi -o out/Launcher.exe
find ./res/* -maxdepth 1 -type d -printf '%f\n' > resl.txt
xargs -a resl.txt -I{} x86_64-w64-mingw32-windres res/{}/res.rc -o res/{}.o
xargs -a resl.txt -I{} x86_64-w64-mingw32-gcc -std=c99 --pedantic -Wall -Wno-implicit-function-declaration --static main.c -lshlwapi res/{}.o -o out/{}.exe

0 comments on commit 4881d68

Please sign in to comment.