mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
FreeBSD workflow and update checkout action version
This commit is contained in:
parent
ffc1626261
commit
c9e4ce31b2
18 changed files with 107 additions and 19 deletions
2
.github/workflows/build_3ds.yml
vendored
2
.github/workflows/build_3ds.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: devkitpro/devkitarm:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile 3DS build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
2
.github/workflows/build_dreamcast.yml
vendored
2
.github/workflows/build_dreamcast.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: kazade/dreamcast-sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile Dreamcast build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
68
.github/workflows/build_freebsd.yml
vendored
Normal file
68
.github/workflows/build_freebsd.yml
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
name: Build latest (FreeBSD)
|
||||
on: [push]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-freebsd
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: empterdose/freebsd-cross-build:11.4
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install prerequisites
|
||||
run: apk add bash wget
|
||||
- name: Retrieve OpenGL and X11 dev files (64 bit)
|
||||
run: |
|
||||
mkdir src/freebsd64
|
||||
cd src/freebsd64
|
||||
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/freebsd64.zip
|
||||
unzip freebsd64.zip
|
||||
- name: Retrieve OpenGL and X11 dev files (32 bit)
|
||||
run: |
|
||||
mkdir src/freebsd32
|
||||
cd src/freebsd32
|
||||
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/freebsd32.zip
|
||||
unzip freebsd32.zip
|
||||
- name: Compile FreeBSD builds
|
||||
id: compile
|
||||
shell: bash
|
||||
env:
|
||||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
|
||||
PLAT32_FLAGS: "-fno-pie -fvisibility=hidden -fcf-protection=none -rdynamic -DCC_BUILD_ICON -I freebsd32/include -L freebsd32/lib"
|
||||
PLAT64_FLAGS: "-fno-pie -fvisibility=hidden -fcf-protection=none -rdynamic -DCC_BUILD_ICON -I freebsd64/include -L freebsd64/lib"
|
||||
run: |
|
||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\"
|
||||
echo $LATEST_FLAG
|
||||
|
||||
cd src
|
||||
i386-freebsd11-clang *.c ${{ env.COMMON_FLAGS }} ${{ env.PLAT32_FLAGS }} $LATEST_FLAG -o cc-fbsd32-gl1 -lm -lpthread -lX11 -lXi -lGL -lexecinfo
|
||||
x86_64-freebsd11-clang *.c ${{ env.COMMON_FLAGS }} ${{ env.PLAT64_FLAGS }} $LATEST_FLAG -o cc-fbsd64-gl1 -lm -lpthread -lX11 -lXi -lGL -lexecinfo
|
||||
|
||||
|
||||
# otherwise notify_failure doesn't work
|
||||
- name: Install curl when necessary
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
run: apk add curl
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile FreeBSD build(s)'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'src/cc-fbsd32-gl1'
|
||||
DEST_NAME: 'ClassiCube-FreeBSD-32'
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'src/cc-fbsd64-gl1'
|
||||
DEST_NAME: 'ClassiCube-FreeBSD-64'
|
6
.github/workflows/build_haiku.yml
vendored
6
.github/workflows/build_haiku.yml
vendored
|
@ -12,12 +12,14 @@ jobs:
|
|||
container:
|
||||
image: haiku/cross-compiler:x86_64-r1beta4
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile haiku build
|
||||
id: compile
|
||||
env:
|
||||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
|
||||
run: |
|
||||
cd src
|
||||
x86_64-unknown-haiku-gcc *.c interop_BeOS.cpp -o ClassiCube-haiku -O1 -s -fno-stack-protector -fno-math-errno -Qn -lm -lGL -lnetwork -lstdc++ -lbe -lgame -ltracker
|
||||
x86_64-unknown-haiku-gcc *.c interop_BeOS.cpp -o ClassiCube-haiku ${{ env.COMMON_FLAGS }} -lm -lGL -lnetwork -lstdc++ -lbe -lgame -ltracker
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
|
|
6
.github/workflows/build_linux32.yml
vendored
6
.github/workflows/build_linux32.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install packages
|
||||
shell: bash
|
||||
run: |
|
||||
|
@ -30,12 +30,14 @@ jobs:
|
|||
gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.NIX32_FLAGS }} $LATEST_FLAG -o cc-nix32-gl1 -lX11 -lXi -lpthread -lGL -lm -ldl
|
||||
gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.NIX32_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-nix32-gl2 -lX11 -lXi -lpthread -lGL -lm -ldl
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 32 bit Linux build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
4
.github/workflows/build_linux64.yml
vendored
4
.github/workflows/build_linux64.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile 64 bit Linux builds
|
||||
shell: bash
|
||||
id: compile
|
||||
|
@ -25,12 +25,14 @@ jobs:
|
|||
gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.NIX64_FLAGS }} $LATEST_FLAG -o cc-nix64-gl1 -lX11 -lXi -lpthread -lGL -lm -ldl
|
||||
gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.NIX64_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-nix64-gl2 -lX11 -lXi -lpthread -lGL -lm -ldl
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 64 bit Linux build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
4
.github/workflows/build_mac64.yml
vendored
4
.github/workflows/build_mac64.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile 64 bit macOS builds
|
||||
shell: bash
|
||||
id: compile
|
||||
|
@ -24,12 +24,14 @@ jobs:
|
|||
MACOSX_DEPLOYMENT_TARGET=10.9 clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -o cc-mac64-gl1 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
|
||||
MACOSX_DEPLOYMENT_TARGET=10.9 clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-mac64-gl2 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 64 bit macOS build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
4
.github/workflows/build_n64.yml
vendored
4
.github/workflows/build_n64.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: ghcr.io/dragonminded/libdragon:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile N64 build
|
||||
id: compile
|
||||
run: |
|
||||
|
@ -25,12 +25,14 @@ jobs:
|
|||
cd $REAL_DIR
|
||||
make n64
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile N64 build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
4
.github/workflows/build_ps2.yml
vendored
4
.github/workflows/build_ps2.yml
vendored
|
@ -12,12 +12,13 @@ jobs:
|
|||
container:
|
||||
image: ghcr.io/ps2dev/ps2sdk:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile PS2 build
|
||||
id: compile
|
||||
run: |
|
||||
apk add make mpc1
|
||||
make ps2
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
|
@ -25,6 +26,7 @@ jobs:
|
|||
NOTIFY_MESSAGE: 'Failed to compile PS2 build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
2
.github/workflows/build_ps3.yml
vendored
2
.github/workflows/build_ps3.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: akusiroyo/ps3sdk:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile PS3 build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
2
.github/workflows/build_psp.yml
vendored
2
.github/workflows/build_psp.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: pspdev/pspdev:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile PSP build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
4
.github/workflows/build_rpi32.yml
vendored
4
.github/workflows/build_rpi32.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: dockcross/linux-armv6-lts
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Retrieve OpenGL and X11 dev files
|
||||
run: |
|
||||
mkdir src/rpi
|
||||
|
@ -30,12 +30,14 @@ jobs:
|
|||
cd src
|
||||
$CC *.c ${{ env.COMMON_FLAGS }} ${{ env.RPI32_FLAGS }} $LATEST_FLAG -o cc-rpi32 -lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile RPI 32 bit build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
4
.github/workflows/build_rpi64.yml
vendored
4
.github/workflows/build_rpi64.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: dockcross/linux-arm64-lts
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Retrieve OpenGL and X11 dev files
|
||||
run: |
|
||||
mkdir src/rpi
|
||||
|
@ -30,12 +30,14 @@ jobs:
|
|||
cd src
|
||||
$CC *.c ${{ env.COMMON_FLAGS }} ${{ env.RPI64_FLAGS }} $LATEST_FLAG -o cc-rpi64 -lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile RPI 64 bit build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
2
.github/workflows/build_vita.yml
vendored
2
.github/workflows/build_vita.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: gnuton/vitasdk-docker:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile Vita build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
2
.github/workflows/build_wiigc.yml
vendored
2
.github/workflows/build_wiigc.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: devkitpro/devkitppc:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile Wii and GameCube build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
4
.github/workflows/build_win32.yml
vendored
4
.github/workflows/build_win32.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile 32 bit Windows builds
|
||||
shell: bash
|
||||
id: compile
|
||||
|
@ -30,12 +30,14 @@ jobs:
|
|||
# mingw defaults to i686, but some really old CPUs only support i586
|
||||
i686-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN32_FLAGS }} -march=i586 -o cc-w9x-ogl.exe CCicon_32.res $LATEST_FLAG -DCC_BUILD_MANUAL -DCC_BUILD_WIN -DCC_BUILD_GL -DCC_BUILD_WINGUI -DCC_BUILD_WGL -DCC_BUILD_WINMM -DCC_BUILD_HTTPCLIENT -DCC_BUILD_SCHANNEL -lwinmm -limagehlp -lopengl32
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 32 bit Windows build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
4
.github/workflows/build_win64.yml
vendored
4
.github/workflows/build_win64.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile 64 bit Windows builds
|
||||
shell: bash
|
||||
id: compile
|
||||
|
@ -27,12 +27,14 @@ jobs:
|
|||
x86_64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-ogl.exe CCicon_64.res $LATEST_FLAG -DCC_BUILD_MANUAL -DCC_BUILD_WIN -DCC_BUILD_GL -DCC_BUILD_WINGUI -DCC_BUILD_WGL -DCC_BUILD_WINMM -DCC_BUILD_HTTPCLIENT -DCC_BUILD_SCHANNEL -lwinmm -limagehlp -lopengl32
|
||||
x86_64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-d3d11.exe CCicon_64.res $LATEST_FLAG -DCC_BUILD_MANUAL -DCC_BUILD_WIN -DCC_BUILD_D3D11 -DCC_BUILD_WINGUI -DCC_BUILD_WGL -DCC_BUILD_WINMM -DCC_BUILD_HTTPCLIENT -DCC_BUILD_SCHANNEL -lwinmm -limagehlp
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 64 bit Windows build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
|
|
2
.github/workflows/build_xbox.yml
vendored
2
.github/workflows/build_xbox.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
container:
|
||||
image: ghcr.io/xboxdev/nxdk:git-e955705a
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile Xbox build
|
||||
id: compile
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue