url-eater/.github/workflows/build_nix.yml

19 lines
524 B
YAML
Raw Normal View History

2023-04-02 17:20:29 +00:00
name: "Build legacy Nix package on Ubuntu"
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-04-05 15:22:32 +00:00
- uses: actions/checkout@v3
2023-04-02 17:20:29 +00:00
- uses: cachix/install-nix-action@v12
- name: Building package
2023-04-05 15:22:32 +00:00
run: nix-build . -A defaultPackage.x86_64-linux
2023-04-15 12:11:53 +00:00
- name: Get commit hash
run: echo "COMMIT_HASH=${GITHUB_SHA::6}" >> $GITHUB_ENV
2023-04-05 15:22:32 +00:00
- uses: actions/upload-artifact@v3
with:
2023-04-15 12:11:53 +00:00
name: url-eater-${{ env.COMMIT_HASH }}-x86_64-linux
2023-04-05 15:22:32 +00:00
path: result/bin/url-eater