Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
veehaitch committed Aug 2, 2024
0 parents commit 470dcc2
Show file tree
Hide file tree
Showing 12 changed files with 1,451 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yaml
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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
result*
Loading

0 comments on commit 470dcc2

Please sign in to comment.