-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
package: | ||
- faf-client | ||
- faf-client-unstable | ||
- proton-ge | ||
- wine-ge | ||
- wine-osu | ||
- wine-tkg | ||
|
||
uses: ./.github/workflows/nix.yml | ||
with: | ||
command: nix build -L .#${{ matrix.package }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,17 @@ name: Checks | |
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
checks: | ||
name: Check expressions | ||
runs-on: ubuntu-latest | ||
check: | ||
strategy: | ||
matrix: | ||
command: | ||
- 'nix flake check --accept-flake-config' | ||
- 'nix run nixpkgs#alejandra -- -c . -e ./npins' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v20 | ||
with: | ||
install_url: https://nixos.org/nix/install | ||
extra_nix_config: | | ||
auto-optimise-store = true | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
experimental-features = nix-command flakes | ||
- run: ${{ matrix.command }} | ||
- nix flake check --accept-flake-config | ||
- nix run nixpkgs#alejandra -- -c . -e ./npins | ||
|
||
uses: ./.github/workflows/nix.yml | ||
with: | ||
command: ${{ matrix.command }} | ||
|
||
build: | ||
needs: check | ||
uses: ./.github/workflows/build.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Nix | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
command: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
nix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
install_url: https://nixos.org/nix/install | ||
extra_nix_config: | | ||
auto-optimise-store = true | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
experimental-features = nix-command flakes | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: nix-gaming | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- run: ${{ inputs.command }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,28 @@ on: | |
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
cachix: | ||
name: Update sources | ||
runs-on: ubuntu-latest | ||
update: | ||
strategy: | ||
matrix: | ||
command: | ||
- nix run nixpkgs#npins update | ||
- pkgs/faf-client/update.sh | ||
- pkgs/faf-client/update-src.sh | ||
- pkgs/osu-lazer-bin/update.sh | ||
- pkgs/osu-stable/update.sh | ||
- pkgs/wine/update-wine-ge.sh | ||
|
||
uses: ./.github/workflows/nix.yml | ||
with: | ||
command: ${{ matrix.command }} | ||
|
||
build: | ||
needs: update | ||
uses: ./.github/workflows/build.yml | ||
|
||
push: | ||
needs: build | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v20 | ||
with: | ||
install_url: https://nixos.org/nix/install | ||
extra_nix_config: | | ||
auto-optimise-store = true | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
experimental-features = nix-command flakes | ||
- run: nix run nixpkgs#npins update; pkgs/osu-lazer-bin/update.sh; pkgs/osu-stable/update.sh; pkgs/faf-client/update.sh; pkgs/wine/update-wine-ge.sh; pkgs/faf-client/update-src.sh | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "[gha] bump npins inputs" | ||
commit_message: "Update inputs" |