Skip to content

Update main.yml

Update main.yml #6

Workflow file for this run

name: generate-builds
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libsdl2-dev libzip-dev libogg-dev libvorbis-dev libtinyxml2-dev zipcmp zipmerge ziptool
- name: Build
run: |
cmake -S. -Bbuild-rel -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build build-rel --config Release -j3
(cd build-rel && cpack -G External)
mv build-cmake/*.appimage future.appimage
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: future-linux
path: |
future.appimage
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
cmake -S . -B build-windows -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build build-windows --config Release --parallel 10
(cd build-windows && cpack)
cd ..
mv _packages/*.zip _packages/future-windows-x64.zip
- name: Unzip Package
run: Expand-Archive -Path _packages/future-windows-x64 -DestinationPath future-windows-x64
- name: Upload
uses: actions/upload-artifact@v4
with:
name: future-windows-x64
path: future-windows-x64