Skip to content

Commit

Permalink
ci: add release workflow + v0.4.0 notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Naxdy committed Oct 20, 2024
1 parent a8ccdf2 commit 7e3896b
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/release_notes/v0.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
> [!NOTE]
> This build is compatible with version 13.0.3 of SSBU ONLY!
This version introduces _no_ new functionality, but provides two versions of the plugin:

- The standard one, named `liblatency_slider_de.nro`, which is functionally identical to `v0.3.2`
- A "classic" version, named `liblatency_slider_de_classic.nro`

The "classic" version of the plugin is closer to the original latency slider in functionality:

- You can only see and adjust your desired latency in arenas, D-pad inputs on any CSS are ignored.
- The latency you select in arenas carries over to all gamemodes, including quickplay / elite.

The reason you'd pick classic over mainline is mod compatibility. Because it's much more barebones, it has a higher chance of being compatible with big, complex mods like the CSK collection. If you don't have any issues with mod compatibility however, there is no reason to use "classic" over the regular version.

> [!NOTE]
> If you're using the regular latency slider, and don't plan on switching to the classic version, there is no reson to upgrade from `v0.3.2` to `v0.4.0`.
26 changes: 26 additions & 0 deletions .github/workflows/check-flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Nix CI

on: pull_request

concurrency:
group: "${{ github.head_ref }}"
cancel-in-progress: true

jobs:
check:
name: "Check"
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Check
run: |
nix flake check --print-build-logs -j auto
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Nix CD

on:
push:
branches:
- "master"

concurrency:
group: "${{ github.head_ref }}"
cancel-in-progress: true

jobs:
check:
name: "Publish Stable Release"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Check
run: |
nix flake check --print-build-logs -j auto
- name: "Determine release"
id: det-rel
run: |
version=$(nix flake eval .#packages.x86_64-linux.default.version --raw)
if [$(git tag -l "$version")]; then
echo "releasever=$version" >> $GITHUB_OUTPUT
else
echo "releasever=none" >> $GITHUB_OUTPUT
fi
- name: "Build Release"
if: steps.det-rel.outputs.releasever != 'none'
run: |
nix build .# --print-build-logs -j auto
nix build .#latency-slider-de-classic --print-build-logs -j auto -o result-classic
- name: "Publish Release"
if: steps.det-rel.outputs.releasever != 'none'
uses: ncipollo/release-action@v1.14.0
with:
artifacts: "result/lib/*.nro,result-classic/lib/*.nro"
bodyFile: ".github/release_notes/v${{ steps.det-rel.outputs.releasever }}.md"
name: "v${{ steps.det-rel.outputs.releasever }}"
commit: "${{ github.head_ref }}"
tag: "v${{ steps.det-rel.outputs.releasever }}"

0 comments on commit 7e3896b

Please sign in to comment.