Use older gnu2x standard name #38
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: Build | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- published | |
env: | |
CMAKE_PRESET: release | |
jobs: | |
build: | |
permissions: | |
contents: write | |
# For reference when cross-platform support is added: | |
# https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml | |
runs-on: ubuntu-24.04 | |
steps: | |
# https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md#build-dependencies | |
- name: Install desktop dev dependencies | |
run: | | |
sudo apt-get install build-essential git make \ | |
pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev \ | |
libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev \ | |
libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev \ | |
libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev \ | |
libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev \ | |
libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake --preset ${{env.CMAKE_PRESET}} | |
- name: Build | |
run: cmake --build -j $(nproc) --preset ${{env.CMAKE_PRESET}} | |
- name: Upload commit artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: memsed | |
path: | | |
build/${{env.CMAKE_PRESET}}/memsed | |
- name: Check for uncommitted changes | |
run: | | |
git diff --exit-code | |
- name: Update release notes | |
if: github.event_name == 'release' | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
run: python .github/workflow_data/release.py | |
- name: Upload release artifact | |
if: github.event_name == 'release' | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
body_path: .github/workflow_data/release.md | |
files: | | |
build/${{env.CMAKE_PRESET}}/memsed |