Skip to content

Commit

Permalink
ci(cachix): make cachix not fallback (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeeraa authored Feb 1, 2025
1 parent 9d356e0 commit 0b1b507
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
name: "Cachix build"
on:
check_run:
types:
- completed
push:
branches-ignore:
- "renovate/**"
paths-ignore:
- "docs/**"
- "**.md"
- "**/LICENSE"
- "flake.lock"
- "packages/**"
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "**/LICENSE"
- "flake.lock"
- "packages/**"
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
workflow_dispatch:
jobs:
build-and-cache:
if: ${{ github.event.check_run.name == 'Evaluate flake.nix' && github.event.check_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,4 +34,6 @@ jobs:
name: freesmlauncher
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix-build | cachix push freesmlauncher
- run: nix-shell --run "echo OK"
- run: |
nix develop
echo "OK"
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,9 @@

<p>Feel free to create a GitHub issue if you find a bug or want to suggest a new feature.</p>


> [!CAUTION]
> Do not mention Freesm Launcher on Prism Launcher Discord, Forum, GitHub, etc. Freesm is a standalone project, taking code base from Prism, and may (in the future) have its own site, Discord, etc.</p>

<h2>Translations</h2>

<p>The translation effort for Freesm Launcher is hosted on <a href="https://hosted.weblate.org/projects/freesmlauncher/freesmlauncher-launcher/">Weblate</a>. Information about translating Freesm Launcher is available at <a href="https://github.com/FreesmTeam/Translations">GitHub Translations</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion nix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
> We are using **Garnix CI** for binary caching.
> To add the binary cache manually, proceed to read [this](https://garnix.io/docs/caching).
>
> We also use **[Cachix](https://app.cachix.org/cache/freesmlauncher#pull)** as a fallback for binary caching.
> We also use **[Cachix](https://app.cachix.org/cache/freesmlauncher#pull)** as a second cache for binary caching.
> For more information, check out [this guide](https://docs.cachix.org/getting-started#using-binaries-with-nix).
---
Expand Down

0 comments on commit 0b1b507

Please sign in to comment.