Skip to content

fix: ignore zero-value scroll axis events (scroll-down jerk) #8

fix: ignore zero-value scroll axis events (scroll-down jerk)

fix: ignore zero-value scroll axis events (scroll-down jerk) #8

Workflow file for this run

name: Release
on:
push:
branches:
- main
tags: ["v*"]
workflow_dispatch:
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
bump:
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
uses: smpl-os/.github/.github/workflows/auto-release.yml@main
with:
version-file: config.mk
branch: main
secrets: inherit
build:
needs: bump
if: always() && (needs.bump.result == 'success' && needs.bump.outputs.skipped != 'true' || startsWith(github.ref, 'refs/tags/'))
name: Build st-smpl
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- name: Install git
run: pacman -Sy --noconfirm --needed git
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.bump.outputs.sha || github.ref }}
- name: Configure git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install build dependencies
run: |
pacman -Syu --noconfirm --needed \
base-devel pkgconf \
fontconfig freetype2 \
wayland wayland-protocols libxkbcommon \
pixman \
harfbuzz \
imlib2
- name: Build
run: make
- name: Strip binary
run: strip st-wl
- name: Prepare release assets
run: |
VERSION=$(grep -oP '^VERSION\s*=\s*\K[\d.]+' config.mk)
cp st-wl "st-smpl-${VERSION}-x86_64"
echo "BIN=st-smpl-${VERSION}-x86_64" >> "$GITHUB_ENV"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ env.VERSION }}
name: "st-smpl v${{ env.VERSION }}"
generate_release_notes: true
files: |
${{ env.BIN }}