Skip to content

Fix #3634: Fix profile menu not greying out after deleting all profiles #180

Fix #3634: Fix profile menu not greying out after deleting all profiles

Fix #3634: Fix profile menu not greying out after deleting all profiles #180

Workflow file for this run

# SuperTux
# Copyright (C) 2020-2021 Jacob Burroughs <maths22@gmail.com>
# 2020-2022 A. Semphris <semphris@protonmail.com>
# 2026 1111Windows <master@1win.eu.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
name: FreeBSD
on:
workflow_dispatch:
push:
branches:
- master
tags:
- '*'
pull_request: {}
jobs:
bsd:
strategy:
fail-fast: false
matrix:
vm_os: [freebsd]
build_type: [Debug, Release]
freebsd_release: ["15.0", "14.3"]
include:
- release: ON
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Fetch the whole tree so git describe works
fetch-depth: 0
submodules: recursive
- name: Start VM
id: vm
uses: vmactions/freebsd-vm@v1.3.6
with:
sync: nfs
release: "${{ matrix.freebsd_release }}"
- name: Install dependencies in FreeBSD
if: ${{ matrix.vm_os == 'freebsd' }}
env:
BUILD_TYPE: ${{ matrix.build_type }}
shell: freebsd {0}
run: |
pkg install -y pkgconf git cmake googletest sdl2 sdl2_image openal-soft glew curl libogg libvorbis freetype2 libraqm glm physfs libfmt fribidi harfbuzz libraqm
- name: Build in FreeBSD
if: ${{ matrix.vm_os == 'freebsd' }}
env:
BUILD_TYPE: ${{ matrix.build_type }}
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
git config --global --add safe.directory /home/runner/work/supertux/supertux
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DWARNINGS=ON -DWERROR=OFF -DINSTALL_SUBDIR_SHARE=share/supertux2 -DCMAKE_INSTALL_MESSAGE=NEVER -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_SUBDIR_BIN=bin -DENABLE_DISCORD=ON
ls
make -j4 VERBOSE=1
mkdir out
make install DESTDIR="./out" VERBOSE=1
cd out/usr
echo -e '#!/bin/sh\n' './bin/supertux2' >> run.sh
chmod +x run.sh
#Compiling with the -DWERROR=ON option on FreeBSD will cause the compilation to fail, so it is disabled
- name: Package
env:
BUILD_TYPE: ${{ matrix.build_type }}
freebsd_release: ${{ matrix.freebsd_release }}
run: |
cd $GITHUB_WORKSPACE
cd build
mkdir upload
tar -czvf upload/SuperTux-FreeBSD-${{ matrix.freebsd_release }}-${{ matrix.build_type }}.tar.gz out/usr
- name: Upload tar archives
uses: actions/upload-artifact@v4
with:
name: "SuperTux-${{ matrix.vm_os }}-amd64-${{ matrix.freebsd_release }}-${{ matrix.build_type }}-tgz"
path: build/upload/*.tar.gz
if-no-files-found: ignore
- name: Create Release
if: startsWith(github.ref, 'refs/tags/') && matrix.release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: 'build/upload/SuperTux-*-Release.tar.gz'
draft: true