-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 470dcc2
Showing
12 changed files
with
1,451 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,41 @@ | ||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
checks: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
with: | ||
diagnostic-endpoint: "" | ||
- name: Nix caching | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
with: | ||
diagnostic-endpoint: "" | ||
- name: Run Nix checks | ||
run: nix flake check -L | ||
- name: Build Codecov report | ||
run: | | ||
nix build -L .#checks.x86_64-linux.systemd-credsubst-codecov | ||
cp -L ./result ./codecov.json | ||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: true | ||
files: ./codecov.json | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Build static binary | ||
run: nix build -L .#systemd-credsubst-static | ||
- name: Upload static binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: systemd-credsubst | ||
path: ./result/bin/systemd-credsubst | ||
if-no-files-found: error | ||
retention-days: ${{ github.event_name == 'pull_request' && 5 || 0 }} |
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,2 @@ | ||
target/ | ||
result* |
Oops, something went wrong.