mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d44f29956a | ||
|
|
2858d13429 | ||
|
|
48cf3c7c7c | ||
|
|
619ef1f714 | ||
|
|
b6240539e6 | ||
|
|
7d6df21627 | ||
|
|
3cad70dcc4 | ||
|
|
b8742a5642 | ||
|
|
7f5d29c997 | ||
|
|
cfe3ce7bd0 | ||
|
|
3e4133c14a | ||
|
|
c4b8db85dc | ||
|
|
350011877b | ||
|
|
b1d79d48a6 | ||
|
|
5b42036786 | ||
|
|
4a64232fad | ||
|
|
4ec92f4d89 | ||
|
|
fe4f3f43be |
No files matched your search
@@ -40,12 +40,39 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
bash -n dist/steamify.sh
|
bash -n dist/steamify.sh
|
||||||
# SC2034/SC2154: variables used across the inlined modules.
|
|
||||||
shellcheck -S warning -e SC2034,SC2154 dist/steamify.sh
|
|
||||||
shellcheck -S warning dist/steamify-app.sh
|
|
||||||
python3 -m py_compile ui/steamify-ui
|
python3 -m py_compile ui/steamify-ui
|
||||||
|
|
||||||
|
# shellcheck through an action that brings its own binary: GitHub's runner has it installed,
|
||||||
|
# Gitea's act_runner image doesn't. One file per run, as before (the exceptions are the bundle's).
|
||||||
|
- name: shellcheck the bundle
|
||||||
|
uses: ludeeus/action-shellcheck@2.0.0
|
||||||
|
env:
|
||||||
|
# SC2034/SC2154: variables used across the inlined modules.
|
||||||
|
SHELLCHECK_OPTS: -e SC2034 -e SC2154
|
||||||
|
with:
|
||||||
|
severity: warning
|
||||||
|
scandir: dist
|
||||||
|
ignore_names: steamify-app.sh
|
||||||
|
- name: shellcheck the app launcher
|
||||||
|
uses: ludeeus/action-shellcheck@2.0.0
|
||||||
|
with:
|
||||||
|
severity: warning
|
||||||
|
scandir: dist
|
||||||
|
ignore_names: steamify.sh
|
||||||
|
|
||||||
|
# The build as an artifact on GitHub and on the mirror (Gitea); releases stay GitHub's.
|
||||||
|
# Gitea's artifact server doesn't speak upload-artifact@v4's protocol, and GitHub fails a workflow
|
||||||
|
# that merely mentions the deprecated @v3: Gitea gets christopherhx's fork of v4 for Gitea.
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
|
with:
|
||||||
|
name: steamify
|
||||||
|
path: |
|
||||||
|
dist/steamify.sh
|
||||||
|
dist/steamify-app.tar.gz
|
||||||
|
dist/steamify-app.sh
|
||||||
|
- uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
if: github.server_url != 'https://github.com'
|
||||||
with:
|
with:
|
||||||
name: steamify
|
name: steamify
|
||||||
path: |
|
path: |
|
||||||
@@ -55,6 +82,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Version
|
- name: Version
|
||||||
id: version
|
id: version
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
@@ -69,6 +97,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish the v${{ steps.version.outputs.version }} release
|
- name: Publish the v${{ steps.version.outputs.version }} release
|
||||||
if: >-
|
if: >-
|
||||||
|
github.server_url == 'https://github.com' &&
|
||||||
github.event_name != 'pull_request' && github.ref == 'refs/heads/main' &&
|
github.event_name != 'pull_request' && github.ref == 'refs/heads/main' &&
|
||||||
steps.version.outputs.released == 'false'
|
steps.version.outputs.released == 'false'
|
||||||
env:
|
env:
|
||||||
@@ -104,3 +133,79 @@ jobs:
|
|||||||
gh release create latest --title "Steamify CachyOS - latest (v$VERSION)" --notes "$latest_notes" --latest=false
|
gh release create latest --title "Steamify CachyOS - latest (v$VERSION)" --notes "$latest_notes" --latest=false
|
||||||
fi
|
fi
|
||||||
gh release upload latest dist/steamify.sh dist/steamify-app.sh dist/steamify-app.tar.gz assets/steam-gaming-settings.svg --clobber
|
gh release upload latest dist/steamify.sh dist/steamify-app.sh dist/steamify-app.tar.gz assets/steam-gaming-settings.svg --clobber
|
||||||
|
|
||||||
|
# The mirror (Gitea) publishes its own release per version too, the same way: never overwrites one,
|
||||||
|
# notes from the changelog. gh can't talk to Gitea: its API for the check, a Gitea release action to
|
||||||
|
# publish. The token is the run's own (repository write); a secret RELEASE_TOKEN overrides it.
|
||||||
|
- name: Version (mirror)
|
||||||
|
id: mirror_version
|
||||||
|
if: github.server_url != 'https://github.com'
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.RELEASE_TOKEN || github.token }}
|
||||||
|
run: |
|
||||||
|
version="$(grep -oP '^VERSION=\K.*' steamify.sh)"
|
||||||
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
if curl -fsS -o /dev/null -H "Authorization: token $TOKEN" \
|
||||||
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/tags/v$version"; then
|
||||||
|
echo "released=true" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "::warning::v$version is already released on this server and won't be overwritten."
|
||||||
|
else
|
||||||
|
echo "released=false" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Release notes (mirror)
|
||||||
|
if: >-
|
||||||
|
github.server_url != 'https://github.com' &&
|
||||||
|
github.event_name != 'pull_request' && github.ref == 'refs/heads/main' &&
|
||||||
|
steps.mirror_version.outputs.released == 'false'
|
||||||
|
env:
|
||||||
|
VERSION: ${{ steps.mirror_version.outputs.version }}
|
||||||
|
run: |
|
||||||
|
changes="$(awk -v v="$VERSION" '
|
||||||
|
$0 ~ "^## " { if (found) exit; if (index($0, "## " v " ") == 1) { found = 1; next } }
|
||||||
|
found' CHANGELOG.md)"
|
||||||
|
cat > dist/release-notes.md <<NOTES
|
||||||
|
Single-file build of v$VERSION ($(git describe --always), $(git log -1 --format=%cs)).
|
||||||
|
Run this version with:
|
||||||
|
|
||||||
|
curl -fsSL ${{ github.server_url }}/${{ github.repository }}/releases/download/v$VERSION/steamify.sh | bash
|
||||||
|
|
||||||
|
## Changes in v$VERSION
|
||||||
|
$changes
|
||||||
|
NOTES
|
||||||
|
|
||||||
|
- name: Publish the v${{ steps.mirror_version.outputs.version }} release (mirror)
|
||||||
|
if: >-
|
||||||
|
github.server_url != 'https://github.com' &&
|
||||||
|
github.event_name != 'pull_request' && github.ref == 'refs/heads/main' &&
|
||||||
|
steps.mirror_version.outputs.released == 'false'
|
||||||
|
uses: akkuman/gitea-release-action@v1.3.7
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.RELEASE_TOKEN || github.token }}
|
||||||
|
tag_name: v${{ steps.mirror_version.outputs.version }}
|
||||||
|
target_commitish: ${{ github.sha }}
|
||||||
|
name: Steamify CachyOS v${{ steps.mirror_version.outputs.version }}
|
||||||
|
body_path: dist/release-notes.md
|
||||||
|
files: |
|
||||||
|
dist/steamify.sh
|
||||||
|
dist/steamify-app.sh
|
||||||
|
dist/steamify-app.tar.gz
|
||||||
|
assets/steam-gaming-settings.svg
|
||||||
|
|
||||||
|
# A new Steamify release starts the Steamify ISO's release with it (a test build from the ISO repo's
|
||||||
|
# feat/steamify, until that is its master): its iso-release.yml names it after this version, tags it,
|
||||||
|
# and the Gitea mirror builds and attaches the ISO. Needs a fine-grained token for that repo
|
||||||
|
# (Actions: read and write) as the secret ISO_DISPATCH_TOKEN; without it, this is skipped.
|
||||||
|
- name: Start the Steamify ISO's release
|
||||||
|
if: >-
|
||||||
|
github.server_url == 'https://github.com' &&
|
||||||
|
github.event_name != 'pull_request' && github.ref == 'refs/heads/main' &&
|
||||||
|
steps.version.outputs.released == 'false'
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.ISO_DISPATCH_TOKEN }}
|
||||||
|
run: |
|
||||||
|
if [ -z "$GH_TOKEN" ]; then
|
||||||
|
echo "::notice::No ISO_DISPATCH_TOKEN: the Steamify ISO isn't released with this version."; exit 0
|
||||||
|
fi
|
||||||
|
gh workflow run iso-release.yml -R theupriser/steammachine-cachyos-live-iso --ref feat/steamify
|
||||||
|
echo "Started the Steamify ISO's release (theupriser/steammachine-cachyos-live-iso, feat/steamify)"
|
||||||
@@ -68,6 +68,13 @@ gamescope and the Plasma desktop. Primary target: the Valve Steam Machine
|
|||||||
the entry point's `for lib in ...; do` source loop and wraps everything
|
the entry point's `for lib in ...; do` source loop and wraps everything
|
||||||
after that loop in `main()`. Keep that loop on one line, keep all logic in
|
after that loop in `main()`. Keep that loop on one line, keep all logic in
|
||||||
functions, and don't rely on `SCRIPT_DIR` for anything but sourcing.
|
functions, and don't rely on `SCRIPT_DIR` for anything but sourcing.
|
||||||
|
The workflow is one file for GitHub and a Gitea mirror (`github.server_url`): build and check run on both
|
||||||
|
(shellcheck through `ludeeus/action-shellcheck`, which brings its own binary; the artifact with
|
||||||
|
`upload-artifact@v4` on GitHub and `christopherhx/gitea-upload-artifact@v4` elsewhere: never mention
|
||||||
|
`upload-artifact@v3`, GitHub fails a workflow for a deprecated version even in a skipped step); the
|
||||||
|
release is `gh` on GitHub and `akkuman/gitea-release-action` on Gitea. A new release on GitHub also starts the
|
||||||
|
Steamify ISO's release (`gh workflow run iso-release.yml` in steammachine-cachyos-live-iso, secret
|
||||||
|
`ISO_DISPATCH_TOKEN`; skipped without it): the ISO repo's GitHub tag names it, the Gitea mirror builds it.
|
||||||
CI (`.github/workflows/bundle.yml`) publishes the bundle as release
|
CI (`.github/workflows/bundle.yml`) publishes the bundle as release
|
||||||
`v$VERSION` on pushes to `main`; an existing version is never overwritten,
|
`v$VERSION` on pushes to `main`; an existing version is never overwritten,
|
||||||
so bump `VERSION` for every release.
|
so bump `VERSION` for every release.
|
||||||
@@ -252,6 +259,11 @@ gamescope and the Plasma desktop. Primary target: the Valve Steam Machine
|
|||||||
kernel only pairs that with a named lookup ("Port C") when the CEC driver
|
kernel only pairs that with a named lookup ("Port C") when the CEC driver
|
||||||
registered first, which never happens since amdgpu loads from the
|
registered first, which never happens since amdgpu loads from the
|
||||||
initramfs. Without it `/dev/cec0` exists but stays at `f.f.f.f`.
|
initramfs. Without it `/dev/cec0` exists but stays at `f.f.f.f`.
|
||||||
|
The source comes from one raw.githubusercontent.com download, which GitHub rate-limits (HTTP 429 after a
|
||||||
|
day of test installs, per address): it's kept in `/var/cache/steamify/cros-ec-cec-<sha256:12>.c` and reused
|
||||||
|
while its checksum matches. The name carries the checksum, so a new pin (commit + SHA-256 in `lib/cec.sh`)
|
||||||
|
downloads its own file once and removes the old one. The repo is an unofficial mirror of Valve's kernel
|
||||||
|
without releases: if it ever disappears, ship the file with Steamify. The test VMs share the host's cache.
|
||||||
- Power-off fix (`poweroff`, `lib/fremont-poweroff.sh`, a default sub-option
|
- Power-off fix (`poweroff`, `lib/fremont-poweroff.sh`, a default sub-option
|
||||||
of `machine`): recent kernels (7.2 and the 6.x/7.0/7.1 updates with the
|
of `machine`): recent kernels (7.2 and the 6.x/7.0/7.1 updates with the
|
||||||
backport) keep the firmware's S4/S5 wake bit on GPIO
|
backport) keep the firmware's S4/S5 wake bit on GPIO
|
||||||
|
|||||||
@@ -5,6 +5,22 @@ All notable changes, per version and per commit. Versions follow
|
|||||||
`steamify.sh`. Versions before 0.7.0 were numbered afterwards,
|
`steamify.sh`. Versions before 0.7.0 were numbered afterwards,
|
||||||
one per merged pull request.
|
one per merged pull request.
|
||||||
|
|
||||||
|
## 2.9.4 - 2026-09-29
|
||||||
|
|
||||||
|
- `619ef1f` **docs: AGENTS.md and TECHNICAL.md: the CEC driver cache, the one workflow for GitHub and a Gitea mirror, and that a new release starts the Steamify ISO's release**
|
||||||
|
- `b624053` **chore: Version 2.9.4**
|
||||||
|
|
||||||
|
## 2.9.3 - 2026-09-29
|
||||||
|
|
||||||
|
- `7f5d29c` **feat(ci): a new Steamify release starts the Steamify ISO's release (a test build from the ISO repo's feat/steamify; secret ISO_DISPATCH_TOKEN)**
|
||||||
|
- `cfe3ce7` **chore: Version 2.9.3**
|
||||||
|
|
||||||
|
## 2.9.2 - 2026-09-29
|
||||||
|
|
||||||
|
- **feat(ci): a Gitea mirror publishes its own release per version (akkuman/gitea-release-action; never overwrites one, notes from the changelog, links to the mirror)**
|
||||||
|
- **fix(ci): the build also runs on a Gitea mirror (act_runner): shellcheck through ludeeus/action-shellcheck, which brings its own binary; the artifact goes up there with christopherhx/gitea-upload-artifact (GitHub refuses a workflow that mentions the deprecated upload-artifact@v3); releases are only published on GitHub**
|
||||||
|
- `fe4f3f4` **chore: Version 2.9.2**
|
||||||
|
|
||||||
## 2.9.1 - 2026-09-29
|
## 2.9.1 - 2026-09-29
|
||||||
|
|
||||||
- `c87e6c7` **docs: changelog for the CEC driver cache**
|
- `c87e6c7` **docs: changelog for the CEC driver cache**
|
||||||
|
|||||||
+1
-1
@@ -514,7 +514,7 @@ immediately, which can turn into a loop - see
|
|||||||
| `services/` | The systemd units the scripts install (`service_file`, `@KEY@` placeholders); see its README |
|
| `services/` | The systemd units the scripts install (`service_file`, `@KEY@` placeholders); see its README |
|
||||||
| `patches/` | Module sources and patches the scripts build or apply (`patch_file`); see its README |
|
| `patches/` | Module sources and patches the scripts build or apply (`patch_file`); see its README |
|
||||||
| `.github/tools/bundle.sh` | Builds the single-file version (`dist/steamify.sh`), with `patches/` and `services/` embedded |
|
| `.github/tools/bundle.sh` | Builds the single-file version (`dist/steamify.sh`), with `patches/` and `services/` embedded |
|
||||||
| `.github/workflows/bundle.yml` | Builds and checks it on every push; publishes it on `main` |
|
| `.github/workflows/bundle.yml` | Builds and checks it on every push (GitHub and a Gitea mirror); publishes it on `main`, and starts the Steamify ISO's release |
|
||||||
|
|
||||||
The single-file version is generated: on every push to `main`, GitHub
|
The single-file version is generated: on every push to `main`, GitHub
|
||||||
Actions runs `.github/tools/bundle.sh`, checks the result with `bash -n` and
|
Actions runs `.github/tools/bundle.sh`, checks the result with `bash -n` and
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
|
|
||||||
# Release version, see CHANGELOG.md.
|
# Release version, see CHANGELOG.md.
|
||||||
VERSION=2.9.1
|
VERSION=2.9.4
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user