-
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflows for Linux builds and Nix flake builds (#659)
* Create build-linux.yml * Update build-linux.yml * build-linux: run as sudo * Create nix-build.yaml * Rename nix-build.yaml to build-nix.yaml * build-nix: rename workflow to 'Nix Flake' * README: add workflow status badges
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 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,28 @@ | ||
name: Linux Build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "README.md" | ||
- ".gitignore" | ||
- "LICENSE" | ||
pull_request: | ||
|
||
jobs: | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: "Setup Python" | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.12 | ||
cache: "poetry" | ||
|
||
- name: "Install auto-cpufreq" | ||
run: sudo ./auto-cpufreq-installer --install | ||
|
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 Flake | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "README.md" | ||
- ".gitignore" | ||
- "LICENSE" | ||
pull_request: | ||
|
||
jobs: | ||
build-nix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Install Nix ❄️" | ||
uses: cachix/install-nix-action@v25 | ||
|
||
- name: "Nix Cache" | ||
uses: DeterminateSystems/magic-nix-cache-action@v3 | ||
|
||
- name: "Build Nix Flake ❄️" | ||
run: nix build | ||
|
||
|
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