2023-04-15 19:15:39 -05:00
|
|
|
name: build nixos-runner
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-15 23:08:34 -05:00
|
|
|
container: docker.io/jcollie/nixos-runner:latest
|
2023-04-15 19:15:39 -05:00
|
|
|
steps:
|
2023-04-15 19:31:50 -05:00
|
|
|
- run: ldd /__e/node16/bin/node
|
2023-04-15 23:08:34 -05:00
|
|
|
- run: echo "ld-library-path=${LD_LIBRARY_PATH}" >> $GITHUB_OUTPUT
|
|
|
|
id: ld-library-path
|
2023-04-15 22:17:03 -05:00
|
|
|
- uses: actions/checkout@v3
|
2023-04-15 23:08:34 -05:00
|
|
|
env:
|
|
|
|
LD_LIBRARY_PATH: ${{ steps.ld-library-path.outputs.ld-library-path }}
|
2023-04-15 22:17:03 -05:00
|
|
|
- run: nix -L build .#nixos-runner
|
|
|
|
- run: nix run .#push-container -- result --registry ghcr.io --repository jcollie/nixos-runner
|