CI: init
This commit is contained in:
parent
b566e50159
commit
e6f3fbb21a
1 changed files with 24 additions and 0 deletions
24
.github/workflows/CI.yml
vendored
Normal file
24
.github/workflows/CI.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
CI:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: "Install Nix"
|
||||
uses: cachix/install-nix-action@v17
|
||||
- name: Build
|
||||
run: |
|
||||
for iso in $(nix flake show --json | nix run nixpkgs#jq -- -r keys[]); do
|
||||
nix build .#$iso
|
||||
cp result/iso/*.iso $iso.iso
|
||||
rm result
|
||||
done
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: "*.iso"
|
||||
Loading…
Add table
Add a link
Reference in a new issue