Skip to content

fix: nowcursor stays in a 4 char bound within the view #14

fix: nowcursor stays in a 4 char bound within the view

fix: nowcursor stays in a 4 char bound within the view #14

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*' # Trigger on version tags, e.g., v1.0.0
workflow_dispatch: # Allow manual triggering
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: fast-notepad-linux
- os: windows-latest
artifact_name: fast-notepad-windows.exe
- os: macos-latest
artifact_name: fast-notepad-macos
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
variant: sccache
key: ${{ github.job }}-${{ matrix.os }}
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
- name: Build
run: cmake --build build --config Release --parallel
- name: Prepare Artifact
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
# Windows MSVC puts release builds in the Release subfolder
cp build/Release/FastNotepad.exe ${{ matrix.artifact_name }}
else
cp build/FastNotepad ${{ matrix.artifact_name }}
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: ${{ matrix.artifact_name }}
release:
name: Create GitHub Release
needs: build
if: startsWith(github.ref, 'refs/tags/') # Only create release on tag push
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: artifacts/*
generate_release_notes: true