Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,3 @@ jobs:
diagnostic-endpoint: ""
- name: Run `nix build`
run: nix flake check -L
nix-bundle:
runs-on: ubuntu-latest
# Only run on "v*" tagged commits
if: startsWith(github.event.ref, 'refs/tags/v')
needs: [nix-build]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@v2
with:
diagnostic-endpoint: ""
- name: Run `nix bundle`
run: |
nix bundle --out-link wetest-bundle-link
cp --dereference wetest-bundle-link wetest-bundle
- name: 'Upload bundle'
uses: actions/upload-artifact@v3
with:
name: wetest-bundle
path: wetest-bundle
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Release artifacts"

permissions: read-all

on:
# Allows running this workflow manually
workflow_dispatch:
push:
tags:
- "v*.*"

jobs:
appimage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@v2
with:
diagnostic-endpoint: ""
- name: Build AppImage
id: build-appimage
run: |
nix build -L '.#AppImage'
result_path="$(realpath result)"
cp --dereference result "${result_path#*-}"
- name: Upload AppImage
uses: actions/upload-artifact@v3
with:
name: AppImage
path: |
*.AppImage
88 changes: 88 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
flake-utils.url = "github:numtide/flake-utils";
epnix.url = "github:epics-extensions/EPNix";
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
nix-appimage = {
url = "github:ralismark/nix-appimage";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = {
Expand All @@ -14,6 +18,7 @@
flake-utils,
epnix,
flake-compat,
nix-appimage,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
Expand Down Expand Up @@ -69,6 +74,8 @@
};
};

packages.AppImage = nix-appimage.bundlers.${system}.default self.packages.${system}.default;

devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [poetry python39Full];
};
Expand Down