separate steps for linux and windows

submit_rewrite
cosmonaut 2021-02-27 13:10:20 -08:00
parent 587f74bf34
commit 2fe0396bcc
1 changed files with 12 additions and 2 deletions

View File

@ -3,12 +3,22 @@ type: docker
name: default name: default
steps: steps:
- name: build - name: build-linux
image: thatcosmonaut/moonworks-build image: thatcosmonaut/moonworks-build
commands: commands:
- dnf install -y git cmake SDL2-devel - dnf install -y git cmake SDL2-devel
- git submodule update --recursive --init - git submodule update --recursive --init
- cmake -E make_directory ./build - cmake -DCMAKE_C_COMPILER=/usr/bin/clang -E make_directory ./build
- cd ./build - cd ./build
- cmake -S .. -B . - cmake -S .. -B .
- make - make
- name: build-windows
image: thatcosmonaut/moonworks-build
commands:
- dnf install -y git cmake SDL2-devel
- git submodule update --recursive --init
- cmake -DCMAKE_C_COMPILER=/usr/bin/mingw64 -E make_directory ./build
- cd ./build
- cmake -S .. -B .
- make