fix features and workflows

This commit is contained in:
Clément DOUIN
2024-11-27 20:39:13 +01:00
parent f0fbd3d213
commit 0917caa400
3 changed files with 14 additions and 15 deletions
+7 -9
View File
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
target:
description: "Target"
description: Target
required: true
type: choice
options:
@@ -19,11 +19,11 @@ on:
- x86_64-unknown-linux-musl
- x86_64-w64-mingw32
defaultFeatures:
description: "Enable default cargo features"
description: Enable default cargo features
default: true
type: bool
features:
description: "Cargo features (comma-separated)"
description: Cargo features (comma-separated)
type: string
jobs:
@@ -42,7 +42,7 @@ jobs:
uses: cachix/cachix-action@v15
with:
name: soywod
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: nix-community
- name: Build release
run: |
@@ -51,10 +51,8 @@ jobs:
--arg fenix 'import (fetchTarball "https://github.com/soywod/fenix/archive/main.tar.gz") { }' \
--arg defaultFeatures ${{ inputs.defaultFeatures }} \
--argstr features ${{ inputs.features }}
- name: Upload release artifact
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: "himalaya-${{ inputs.target }}"
path: |
result/bin/himalaya*
result/bin/share
name: himalaya-${{ inputs.target }}
path: result/*
+2 -1
View File
@@ -35,7 +35,8 @@ jobs:
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.05
# TODO: nix_path: nixpkgs=channel:nixos-unstable
nix_path: nixpkgs=https://github.com/soywod/nixpkgs/archive/master.tar.gz
enable_kvm: true
extra_nix_config: experimental-features = nix-command flakes
- name: Cache Nix store