Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
overwrite github workflow to match mine old one
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Rathgeb <[email protected]>
  • Loading branch information
maggu2810 committed Mar 18, 2024
1 parent b5ca993 commit 52156f6
Show file tree
Hide file tree
Showing 7 changed files with 558 additions and 132 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml

This file was deleted.

56 changes: 28 additions & 28 deletions .github/workflows/package-linux.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: Package - Linux

on:
#push:
# branches: [ master ]

#pull_request:
# branches: [ master ]

workflow_dispatch:
workflow_call:

jobs:
package:
name: GCC 13
runs-on: ubuntu-22.04
linux:
name: Linux AppImages
runs-on: ubuntu-20.04
steps:
- name: Clone Repository
uses: actions/checkout@v4

- name: Update Package Database
run: sudo apt-get update

- name: Install Build Dependencies
run: sudo apt install -y gcc-13 g++-13 python3 scons

- name: Install dxx-rebirth Dependencies
run: sudo apt install -y libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libphysfs-dev libpng-dev

- name: Configure and Build
run: scons -j`nproc`
uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gcc-10 g++-10
sudo apt-get install -y scons libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libphysfs-dev
- name: Configure and build
run: scons -j`nproc` opengl=1 sdl2=1 sdlmixer=1
env:
CC: gcc-13
CXX: g++-13

- name: Install AppImage Requirements
run: sudo apt-get install -y libfuse2 wget curl

- name: Package
CC: gcc-10
CXX: g++-10

- name: Package AppImage
run: ./contrib/packaging/linux/build_package.sh

- name: Upload Artifact
uses: actions/upload-artifact@v4
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: linux
path: '*.zip'
path: '*.AppImage'
51 changes: 28 additions & 23 deletions .github/workflows/package-macos.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
name: Package - MacOS
name: Package - macOS

on:
workflow_dispatch:
workflow_call:
#push:
# branches: [ master ]

jobs:
package:
name: macOS
runs-on: macos-14
steps:
- name: Clone Repository
uses: actions/checkout@v4
#pull_request:
# branches: [ master ]

- name: Install Dependencies
run: brew bundle --verbose
workflow_dispatch:

- name: Configure and Build
jobs:
macos:
name: macOS Apps
runs-on: macos-12
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Prepare environment
run: export MACOSX_DEPLOYMENT_TARGET=10.14

- name: Install dependencies
run: |
# I do not know why, but readline is not found by pkg-config
# For a idea of a fix see: https://superuser.com/a/1277306
export PKG_CONFIG_PATH=/usr/local/opt/readline/lib/pkgconfig
# run build
scons -j4 opengl=1 sdl2=1 macos_add_frameworks=0 macos_bundle_libs=1
brew bundle --verbose
- name: Configure and build
run: scons -j2 opengl=1 sdl2=1 sdlmixer=1 macos_add_frameworks=0 macos_bundle_libs=1

- name: Package
run: ./contrib/packaging/macos/build_package.sh

- name: Upload Artifact
uses: actions/upload-artifact@v4
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: macos
path: '*.zip'
path: '*.zip'
44 changes: 26 additions & 18 deletions .github/workflows/package-windows.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
name: Package - Windows

on:
#push:
# branches: [ master ]

#pull_request:
# branches: [ master ]

workflow_dispatch:
workflow_call:

jobs:
package:
name: MINGW64
runs-on: windows-2022
windows:
name: Windows
runs-on: windows-2019

defaults:
run:
shell: msys2 {0}

steps:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
Expand All @@ -19,26 +27,26 @@ jobs:
install: >-
git
zip
base-devel
base-devel
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-scons
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-SDL
mingw-w64-x86_64-SDL_image
mingw-w64-x86_64-SDL_mixer
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-SDL2_image
mingw-w64-x86_64-SDL2_mixer
mingw-w64-x86_64-physfs
- name: Clone Repository
uses: actions/checkout@v4

- name: Configure and Build
run: scons -j`nproc`

- name: Clone repository
uses: actions/checkout@v3
- name: Configure and build
run: scons -j2 sdl2=1 sdlmixer=1
- name: Package
run: ./contrib/packaging/windows/build_package.sh

- name: Upload Artifact
uses: actions/upload-artifact@v4
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: windows
path: '*.zip'
Loading

0 comments on commit 52156f6

Please sign in to comment.