Version 4.0.0-pre-release-1. #7
Workflow file for this run
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: Releases | |
on: | |
push: | |
tags: '4*' | |
jobs: | |
build-binaries: | |
name: ${{ matrix.lisp }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
lisp: [sbcl] | |
os: [ubuntu-24.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Generate version file | |
shell: bash | |
run: echo $(git -C $GITHUB_WORKSPACE describe --tags --abbrev=0) > version | |
- name: Install dependencies | |
shell: bash | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y flatpak-builder | |
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
- name: Build WebKitGTK Flatpak | |
shell: bash | |
run: | | |
sudo flatpak install --noninteractive org.gnome.Platform/x86_64/46 | |
sudo flatpak install --noninteractive org.gnome.Sdk/x86_64/46 | |
make flatpak-webkitgtk-repository | |
make flatpak-webkitgtk-bundle | |
mv nyxt-webkitgtk.flatpak nyxt-webkitgtk-$(cat version).flatpak | |
- name: Build Electron Flatpak | |
shell: bash | |
run: | | |
sudo flatpak install --noninteractive org.freedesktop.Sdk/x86_64/24.08 | |
sudo flatpak install --noninteractive org.freedesktop.Platform/x86_64/24.08 | |
sudo flatpak install --noninteractive runtime/org.freedesktop.Sdk.Extension.node20/x86_64/24.08 | |
sudo flatpak install --noninteractive org.electronjs.Electron2.BaseApp/x86_64/24.08 | |
make flatpak-electron-repository | |
make flatpak-electron-bundle | |
mv nyxt-electron.flatpak nyxt-electron-$(cat version).flatpak | |
- name: Generate release notes | |
shell: bash | |
run: | | |
echo "Release notes: https://nyxt-browser.com/article/release-$(cat version).org" >> release.txt | |
echo "" >> release.txt | |
echo "To compile from source, prefer the tarball including the submodules if you don't manage the Lisp dependencies yourself." >> release.txt | |
- name: Generate source archive with submodules | |
shell: bash | |
run: git ls-files --recurse-submodules | tar caf nyxt-$(cat version)-source-with-submodules.tar.xz -T- | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
bodyFile: release.txt | |
artifacts: "nyxt-*.tar.xz*,*.flatpak" |