-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 927 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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