Skip to content

Bump version to 0.11.1 #8

Bump version to 0.11.1

Bump version to 0.11.1 #8

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
linux-x86-64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- name: Validate tag
shell: bash
run: |
version=$(sed -n 's/^ :version "\([0-9][0-9.]*\)"$/\1/p' autolith.asd)
test "v$version" = "$GITHUB_REF_NAME"
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install --yes \
bubblewrap build-essential cargo cmake libssl-dev libz-dev \
libzstd-dev pkg-config
- name: Build the pinned SBCL runtime
shell: bash
run: |
runtime_version=$(tr -d '[:space:]' < sbcl.version)
runtime_root="$HOME/.local/share/autolith/runtimes/$runtime_version"
runtime_installation="$runtime_root/installation"
mkdir -p "$runtime_installation"
docker run --rm \
--volume "$GITHUB_WORKSPACE:/workspace:ro" \
--volume "$runtime_installation:/runtime" \
--workdir /workspace \
ubuntu:22.04@sha256:0e0a0fc6d18feda9db1590da249ac93e8d5abfea8f4c3c0c849ce512b5ef8982 \
bash -c 'apt-get update && apt-get install --yes build-essential ca-certificates curl libz-dev libzstd-dev && ./script/build-release-runtime /runtime'
sudo chown -R "$(id -u):$(id -g)" "$runtime_root"
printf 'AUTOLITH_SBCL=%s/bin/sbcl\n' "$runtime_installation" >> "$GITHUB_ENV"
- name: Install Quicklisp
run: |
curl --fail --location --show-error --retry 3 \
--proto '=https' --tlsv1.2 \
--output /tmp/quicklisp.lisp \
https://beta.quicklisp.org/quicklisp.lisp
"$AUTOLITH_SBCL" --noinform --non-interactive \
--load /tmp/quicklisp.lisp \
--eval '(quicklisp-quickstart:install)'
- name: Build and check Autolith
run: |
./script/bootstrap
./script/check
- name: Build release archive
run: ./script/build-release
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
run: |
archive=dist/autolith-"$GITHUB_REF_NAME"-x86_64-linux.tar.gz
checksum=$archive.sha256
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
gh release upload "$GITHUB_REF_NAME" \
"$archive" "$checksum" --clobber
else
gh release create "$GITHUB_REF_NAME" \
"$archive" "$checksum" \
--verify-tag \
--generate-notes \
--title "Autolith ${GITHUB_REF_NAME#v}"
fi