mirror of
https://github.com/Maschell/SDL2_Playground.git
synced 2024-11-23 13:19:16 +01:00
Unifiy github action workflows into a single one
This commit is contained in:
parent
7695362c49
commit
dfe2438574
34
.github/workflows/building.yml
vendored
Normal file
34
.github/workflows/building.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Building binaries.
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build-windows-binary:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: build binary
|
||||||
|
run: |
|
||||||
|
docker build . -f Dockerfile.pc-win -t sdl2_playground-builder-pc-win
|
||||||
|
docker run --rm -v ${PWD}:/project sdl2_playground-builder-pc-win make -f Makefile.pc-win
|
||||||
|
- uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: windows-x64-shared
|
||||||
|
path: "*.exe"
|
||||||
|
build-linux-x86-64-binary:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: build binary
|
||||||
|
run: |
|
||||||
|
docker build . -f Dockerfile.pc -t sdl2_playground-builder-pc
|
||||||
|
docker run --rm -v ${PWD}:/project sdl2_playground-builder-pc bash -c "cd .. && bash filelist.sh"
|
||||||
|
docker run --rm -v ${PWD}:/project sdl2_playground-builder-pc cmake ..
|
||||||
|
docker run --rm -v ${PWD}:/project sdl2_playground-builder-pc make
|
||||||
|
- uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: linux-x86-64-shared
|
||||||
|
path: "./cmake-build/SDL2_Playground"
|
20
.github/workflows/linux-x86-64.yml
vendored
20
.github/workflows/linux-x86-64.yml
vendored
@ -1,20 +0,0 @@
|
|||||||
name: linux-x86-64 building.
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
build-binary:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: build binary
|
|
||||||
run: |
|
|
||||||
docker build . -f Dockerfile.pc -t sdl2_playground-builder-pc
|
|
||||||
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc bash -c "cd .. && bash filelist.sh"
|
|
||||||
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc cmake ..
|
|
||||||
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc make
|
|
||||||
- uses: actions/upload-artifact@master
|
|
||||||
with:
|
|
||||||
name: linux-x86-64-shared binary
|
|
||||||
path: "./cmake-build/SDL2_Playground"
|
|
18
.github/workflows/pc-win.yml
vendored
18
.github/workflows/pc-win.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
name: Windows building.
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
build-binary:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: build binary
|
|
||||||
run: |
|
|
||||||
docker build . -f Dockerfile.pc-win -t sdl2_playground-builder-pc-win
|
|
||||||
docker run --rm -v ${PWD}:/project sdl2_playground-builder-pc-win make -f Makefile.pc-win
|
|
||||||
- uses: actions/upload-artifact@master
|
|
||||||
with:
|
|
||||||
name: windows-shared binary
|
|
||||||
path: "*.exe"
|
|
@ -1,8 +1,6 @@
|
|||||||
FROM debian:sid-slim
|
FROM debian:sid-slim
|
||||||
RUN DEBIAN_FRONTEND="noninteractive"
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils ca-certificates && \
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends apt-utils ca-certificates && \
|
|
||||||
apt-get install -y --no-install-recommends build-essential make git && \
|
apt-get install -y --no-install-recommends build-essential make git && \
|
||||||
apt-get install -y --no-install-recommends cmake && \
|
apt-get install -y --no-install-recommends cmake && \
|
||||||
apt-get install -y --no-install-recommends libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-dev && \
|
apt-get install -y --no-install-recommends libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-dev && \
|
||||||
|
Loading…
Reference in New Issue
Block a user