mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-18 01:26:36 +00:00
Some checks are pending
CI / clang-format (push) Waiting to run
CI / ${{ matrix.name }} (false, --toolchain $GITHUB_WORKSPACE/CMake/i586-pc-msdosdjgpp.cmake, false, true, false, Ninja, DOS, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, --toolchain /usr/local/vitasdk/share/vita.toolchain.cmake, false, false, Ninja, Vita, ubuntu-latest, true, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0.26100.0, false, false, Visual Studio 17 2022, true, Xbox One, windows-latest, amd64, false, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/3DS.cmake, false, devkitpro/devkitarm:latest, false, Ninja, true, Nintendo 3DS, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Switch.cmake, false, devkitpro/devkita64:latest, false, Ninja, Nintendo Switch, true, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, emcmake, false, false, true, Ninja, Emscripten, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, false, false, Ninja, true, MSVC (arm64), windows-latest, amd64_arm64, false) (push) Waiting to run
CI / ${{ matrix.name }} (false, false, true, Ninja, true, MSVC (x86), windows-latest, amd64_x86, false) (push) Waiting to run
CI / ${{ matrix.name }} (false, true, false, Ninja, true, MSVC (x64), windows-latest, amd64, false) (push) Waiting to run
CI / ${{ matrix.name }} (false, true, true, false, Ninja, true, MSVC (x64 Debug), windows-latest, amd64, false) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, -DCMAKE_SYSTEM_NAME=iOS, false, false, Xcode, true, iOS, macos-15, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, false, false, Ninja, Android, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, true, false, Ninja, macOS, macos-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, true, false, Ninja, true, mingw-w64-x86_64, mingw64, msys2 mingw64, windows-latest, msys2 {0}, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, true, true, false, Ninja, true, Linux (Debug), ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, true, true, false, Ninja, true, Linux, ubuntu-latest, true) (push) Waiting to run
CI / FreeBSD (push) Waiting to run
CI / Flatpak (${{ matrix.arch }}) (aarch64, ubuntu-22.04-arm) (push) Waiting to run
CI / Flatpak (${{ matrix.arch }}) (x86_64, ubuntu-latest) (push) Waiting to run
CI / C++ (push) Waiting to run
CI / Release (push) Blocked by required conditions
Docker / Publish web port (push) Waiting to run
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
72 lines
2.9 KiB
YAML
72 lines
2.9 KiB
YAML
name: 'Setup DJGPP toolchain'
|
|
description: 'Download DJGPP and setup CMake toolchain'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: 'Calculate variables'
|
|
id: calc
|
|
shell: sh
|
|
run: |
|
|
version="12.2.0"
|
|
case "${{ runner.os }}-${{ runner.arch }}" in
|
|
"Linux-X86")
|
|
archive="djgpp-linux32-gcc1220.tar.bz2"
|
|
;;
|
|
"Linux-X64")
|
|
archive="djgpp-linux64-gcc1220.tar.bz2"
|
|
;;
|
|
"macOS-X86" | "macOS-X64" | "macOS-ARM64")
|
|
archive="djgpp-osx-gcc1220.tar.bz2"
|
|
;;
|
|
"Windows-X86" | "Windows-X64")
|
|
archive="djgpp-mingw-gcc1220.zip"
|
|
;;
|
|
*)
|
|
echo "Unsupported ${{ runner.os }}-${{ runner.arch }}"
|
|
exit 1;
|
|
;;
|
|
esac
|
|
echo "url=https://github.com/andrewwutw/build-djgpp/releases/download/v3.4/${archive}" >> ${GITHUB_OUTPUT}
|
|
echo "archive=${archive}" >> ${GITHUB_OUTPUT}
|
|
echo "version=${version}" >> ${GITHUB_OUTPUT}
|
|
echo "cache-key=${archive}-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}" >> ${GITHUB_OUTPUT}
|
|
- name: 'Restore cached ${{ steps.calc.outputs.archive }}'
|
|
id: cache-restore
|
|
uses: actions/cache/restore@v5
|
|
with:
|
|
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
|
|
key: ${{ steps.calc.outputs.cache-key }}
|
|
- name: 'Download DJGPP ${{ steps.calc.outputs.version }} for ${{ runner.os }} (${{ runner.arch }})'
|
|
if: ${{ !steps.cache-restore.outputs.cache-hit || steps.cache-restore.outputs.cache-hit == 'false' }}
|
|
shell: pwsh
|
|
run: |
|
|
Invoke-WebRequest "${{ steps.calc.outputs.url }}" -OutFile "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
|
|
- name: 'Cache ${{ steps.calc.outputs.archive }}'
|
|
if: ${{ !steps.cache-restore.outputs.cache-hit || steps.cache-restore.outputs.cache-hit == 'false' }}
|
|
uses: actions/cache/save@v5
|
|
with:
|
|
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
|
|
key: ${{ steps.calc.outputs.cache-key }}
|
|
- name: 'Extract DJGP archive'
|
|
shell: pwsh
|
|
run: |
|
|
$archive = "${{ steps.calc.outputs.archive }}";
|
|
if ($archive.EndsWith(".bz2")) {
|
|
# Remove ".bz2" suffix
|
|
$tar_archive = $archive.Substring(0, $archive.Length - 4)
|
|
7z "-o${{ runner.temp }}" x "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
|
|
7z "-o${{ runner.temp }}" x "${{ runner.temp }}/$tar_archive"
|
|
} else {
|
|
7z "-o${{ runner.temp }}" x "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
|
|
}
|
|
- name: 'Install Linux dependenciy'
|
|
if: ${{ runner.os == 'Linux' }}
|
|
shell: sh
|
|
run: |
|
|
sudo apt-get install -y libfl-dev
|
|
- name: 'Set output variables'
|
|
id: final
|
|
shell: pwsh
|
|
run: |
|
|
echo "${{ runner.temp }}/djgpp/bin" >> $env:GITHUB_PATH
|