diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml new file mode 100644 index 000000000..38393e5a8 --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,20 @@ +name: "Cachix build" +on: + check_run: + types: + - completed +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 + - uses: cachix/install-nix-action@v25 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v14 + with: + name: freesmlauncher + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: nix-build | cachix push freesmlauncher + - run: nix-shell --run "echo OK" diff --git a/README.md b/README.md index 27ec3fe87..6f877ea65 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@

- +
DRM Free
- +

English | Русский

- +

Freesm Launcher is a custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once and login with offline account without any restrictions.

This is a fork of the Prism Launcher and is not endorsed by it. diff --git a/nix/README.md b/nix/README.md index b78a84d80..5393fd066 100644 --- a/nix/README.md +++ b/nix/README.md @@ -2,6 +2,9 @@ > We are using Garnix CI for binary caching. > Proceed to read [this](https://garnix.io/docs/caching), > if you want to add binary cache manually. +> +> Also we using [Cachix](https://app.cachix.org/cache/freesmlauncher#pull) as fallback for binary caching. +> Read more about it [here](https://docs.cachix.org/getting-started#using-binaries-with-nix).

Using on nixos / nixpkgs

Freesm isn't in `nixpkgs` (yet?), so you need to add Freesm in `flake.nix`: @@ -18,13 +21,13 @@ Freesm isn't in `nixpkgs` (yet?), so you need to add Freesm in `flake.nix`: }; }; }; - outputs = { - self, + outputs = { + self, nixpkgs, home-manager, freesmlauncher, ... - } @ inputs : + } @ inputs : ... # rest of flake. } ```