Skip to content

Fix actions

Fix actions #11

Workflow file for this run

name: "Run Actions"
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix flake check
build:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix build .#nixlet -o nixlet
- run: nix build .#nixletNoTpm -o nixlet-no-tpm
- name: Set release version
id: vars
run: |
version=$(nix eval .#version)
echo "APP_VERSION=$version" >> $GITHUB_ENV
- uses: ncipollo/[email protected]
with:
tag: "${{ env.VERSION }}"
artifacts: "nixlet,nixlet-no-tpm"