Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
yituodab committed Aug 1, 2024
1 parent 18e1ebe commit 156d324
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build
on: [push, workflow_dispatch]
jobs:
Windows-x64:
runs-on: windows-latest
steps:
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: build
run: gcc -std=c99 main.c -o Windows-x64.exe
Windows-x86:
runs-on: windows-latest
steps:
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x86
- name: Build
run: gcc -std=c99 main.c -o Windows-x86.exe
Linux-x64:
runs-on: ubuntu-latest
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64
- name: Build
run: gcc -std=c99 main.c -o Linux-x64.out
Linux-x86:
runs-on: ubuntu-latest
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x86
- name: Build
run: gcc -std=c99 main.c -o Linux-x86.out

0 comments on commit 156d324

Please sign in to comment.