diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-11-26 14:24:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 14:24:06 +0100 |
commit | 6bdd27a08e089d4f893786125ca63416580527b3 (patch) | |
tree | a46e4d5dcf94995d504b4c4c1cf8c5721801f604 /.github/workflows/build.yml | |
parent | 80ff0b141804d1f4f44af10595277aaef9615574 (diff) | |
parent | c1b3a3adb4be8b31c23ded08f51a477bfc36d9a3 (diff) | |
download | PrismLauncher-6bdd27a08e089d4f893786125ca63416580527b3.tar.gz PrismLauncher-6bdd27a08e089d4f893786125ca63416580527b3.tar.bz2 PrismLauncher-6bdd27a08e089d4f893786125ca63416580527b3.zip |
Merge pull request #493 from Scrumplex/cachix
Closes https://github.com/PrismLauncher/PrismLauncher/issues/491
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dfb45d4..f07a86e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,9 @@ on: SPARKLE_ED25519_KEY: description: Private key for signing Sparkle updates required: false + CACHIX_AUTH_TOKEN: + description: Private token for authenticating against Cachix cache + required: false jobs: build: @@ -526,3 +529,33 @@ jobs: bundle: "Prism Launcher.flatpak" manifest-path: flatpak/org.prismlauncher.PrismLauncher.yml cache-key: flatpak-${{ github.sha }}-x86_64 + + nix: + runs-on: ubuntu-latest + strategy: + matrix: + package: + - prismlauncher + - prismlauncher-qt5 + steps: + - name: Clone repository + if: inputs.build_type == 'Debug' + uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Install nix + if: inputs.build_type == 'Debug' + uses: cachix/install-nix-action@v18 + with: + install_url: https://nixos.org/nix/install + extra_nix_config: | + auto-optimise-store = true + experimental-features = nix-command flakes + - uses: cachix/cachix-action@v12 + if: inputs.build_type == 'Debug' + with: + name: prismlauncher + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: Build + if: inputs.build_type == 'Debug' + run: nix build .#${{ matrix.package }} --print-build-logs |