sdl2 prefix #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-windows-x86: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW32 | |
- name: Install dependencies | |
shell: msys2 {0} | |
run: pacman --noconfirm -S mingw-w64-i686-SDL2 mingw-w64-i686-gcc make python3 | |
- name: Compile debug and release | |
shell: msys2 {0} | |
run: | | |
mkdir lib lib/debug lib/release | |
make | |
cp dist/Classic64.dll lib/debug | |
make clean | |
make release | |
cp dist/Classic64.dll lib/release | |
- name: Use the Upload Artifact GitHub Action | |
uses: actions/upload-artifact@v3 | |
with: | |
name: classic64-windows-x86 | |
path: lib | |
build-windows-x64: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
- name: Install dependencies | |
shell: msys2 {0} | |
run: pacman --noconfirm -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-gcc make python3 | |
- name: Compile debug and release | |
shell: msys2 {0} | |
run: | | |
mkdir lib lib/debug lib/release | |
make | |
cp dist/Classic64.dll lib/debug | |
make clean | |
make release | |
cp dist/Classic64.dll lib/release | |
- name: Use the Upload Artifact GitHub Action | |
uses: actions/upload-artifact@v3 | |
with: | |
name: classic64-windows-x64 | |
path: lib | |
build-linux-x64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies libsdl2-dev | |
run: sudo apt-get install -y libsdl2-dev | |
- name: Compile debug and release | |
run: | | |
mkdir lib lib/debug lib/release | |
make | |
cp dist/libClassic64.so lib/debug | |
make clean | |
make release | |
cp dist/libClassic64.so lib/release | |
- name: Use the Upload Artifact GitHub Action | |
uses: actions/upload-artifact@v3 | |
with: | |
name: classic64-linux-x64 | |
path: lib | |
build-linux-x86: | |
runs-on: ubuntu-latest | |
container: | |
image: i386/ubuntu | |
steps: | |
- name: Install necessary packages | |
run: | | |
apt-get update | |
apt-get install -y build-essential git libssl-dev curl libsdl2-dev | |
- uses: actions/checkout@v1 | |
- name: Compile debug and release | |
run: | | |
mkdir lib lib/debug lib/release | |
make | |
cp dist/libClassic64.so lib/debug | |
make clean | |
make release | |
cp dist/libClassic64.so lib/release | |
- name: Use the Upload Artifact GitHub Action | |
uses: actions/upload-artifact@v1 | |
with: | |
name: classic64-linux-x86 | |
path: lib | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install gcc10 and sdl2 on Homebrew | |
run: | | |
brew install gcc@10 sdl2 | |
brew unlink sdl2 | |
brew link sdl2 | |
ln -s /usr/local/bin/gcc-10 /usr/local/bin/gcc | |
ln -s /usr/local/bin/g++-10 /usr/local/bin/g++ | |
- name: Compile debug and release | |
run: | | |
mkdir lib lib/debug lib/release | |
make | |
cp libClassic64.dylib lib/debug | |
make clean | |
make release | |
cp libClassic64.dylib lib/release | |
- name: Use the Upload Artifact GitHub Action | |
uses: actions/upload-artifact@v3 | |
with: | |
name: classic64-macos-intel64 | |
path: lib |