mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
convert to use make on linux
This commit is contained in:
parent
2e70d1e6e7
commit
9d7f0bd587
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -49,22 +49,29 @@ jobs:
|
|||||||
|
|
||||||
# Build
|
# Build
|
||||||
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
||||||
if: matrix.config.plat == 'Linux'
|
if: matrix.config.plat == 'Linux' && matrix.config.bits == 64
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
gcc *.c -m${{ matrix.config.bits }} -o ClassiCube -rdynamic -lm -lpthread -lX11 -lXi -lGL -ldl
|
make linux
|
||||||
|
|
||||||
|
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
||||||
|
if: matrix.config.plat == 'Linux' && matrix.config.bits == 32
|
||||||
|
run: |
|
||||||
|
cd src
|
||||||
|
# Note, this overwrites the previous flags
|
||||||
|
make linux CFLAGS="-m32" LDFLAGS="-m32"
|
||||||
|
|
||||||
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
||||||
if: matrix.config.plat == 'Windows' && matrix.config.bits == 64
|
if: matrix.config.plat == 'Windows' && matrix.config.bits == 64
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
x86_64-w64-mingw32-gcc *.c -o ClassiCube.exe -mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32
|
make mingw CC="x86_64-w64-mingw32-gcc"
|
||||||
|
|
||||||
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
- name: Build for ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit)
|
||||||
if: matrix.config.plat == 'Windows' && matrix.config.bits == 32
|
if: matrix.config.plat == 'Windows' && matrix.config.bits == 32
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
i686-w64-mingw32-gcc *.c -o ClassiCube.exe -mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32
|
make mingw CC="i686-w64-mingw32-gcc"
|
||||||
|
|
||||||
build_on_windows:
|
build_on_windows:
|
||||||
name: Build ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit) on Windows
|
name: Build ${{ matrix.config.plat }} (${{ matrix.config.bits }} bit) on Windows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user