mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-22 02:50:19 +00:00
remove cargo cache
Looks like cargo cache is inside the Nix store.
This commit is contained in:
parent
a61ff559e6
commit
2d53144c7c
2 changed files with 5 additions and 24 deletions
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
|
@ -37,20 +37,11 @@ jobs:
|
||||||
name: soywod
|
name: soywod
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
extraPullNames: nix-community
|
extraPullNames: nix-community
|
||||||
- name: Restore Cargo home
|
|
||||||
uses: actions/cache/restore@v4
|
|
||||||
id: cache-cargo-restore
|
|
||||||
with:
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
run: |
|
run: |
|
||||||
|
nix build -L .#${{ matrix.target }}
|
||||||
nix run -L .#${{ matrix.target }} -- --version
|
nix run -L .#${{ matrix.target }} -- --version
|
||||||
cp result/himalaya* .
|
cp result/himalaya.tgz result/himalaya.zip .
|
||||||
- name: Upload release artifact
|
- name: Upload release artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -58,13 +49,3 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
himalaya.tgz
|
himalaya.tgz
|
||||||
himalaya.zip
|
himalaya.zip
|
||||||
- name: Save Cargo home
|
|
||||||
uses: actions/cache/save@v4
|
|
||||||
id: cache-cargo-save
|
|
||||||
with:
|
|
||||||
key: ${{ steps.cache-cargo-restore.outputs.cache-primary-key }}
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
aarch64-linux = rec {
|
aarch64-linux = rec {
|
||||||
rustTarget = "aarch64-unknown-linux-musl";
|
rustTarget = "aarch64-unknown-linux-musl";
|
||||||
runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-aarch64 ${himalaya}";
|
runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-aarch64 ${himalaya}";
|
||||||
mkPackage = { system, pkgs }: package:
|
mkPackage = { system }: package:
|
||||||
let
|
let
|
||||||
inherit (mkPkgsCross system rustTarget) stdenv;
|
inherit (mkPkgsCross system rustTarget) stdenv;
|
||||||
cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
|
cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
runner = { pkgs, himalaya }:
|
runner = { pkgs, himalaya }:
|
||||||
let wine = pkgs.wine.override { wineBuild = "wine64"; };
|
let wine = pkgs.wine.override { wineBuild = "wine64"; };
|
||||||
in "${wine}/bin/wine64 ${himalaya}.exe";
|
in "${wine}/bin/wine64 ${himalaya}.exe";
|
||||||
mkPackage = { system, pkgs }: package:
|
mkPackage = { pkgs }: package:
|
||||||
let
|
let
|
||||||
inherit (pkgs.pkgsCross.mingwW64) stdenv windows;
|
inherit (pkgs.pkgsCross.mingwW64) stdenv windows;
|
||||||
cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
|
cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
aarch64-darwin = {
|
aarch64-darwin = {
|
||||||
rustTarget = "aarch64-apple-darwin";
|
rustTarget = "aarch64-apple-darwin";
|
||||||
runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-aarch64 ${himalaya}";
|
runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-aarch64 ${himalaya}";
|
||||||
mkPackage = { system, pkgs }: package:
|
mkPackage = { system }: package:
|
||||||
let
|
let
|
||||||
inherit ((mkPkgsCross system "aarch64-darwin").pkgsStatic) stdenv darwin;
|
inherit ((mkPkgsCross system "aarch64-darwin").pkgsStatic) stdenv darwin;
|
||||||
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
|
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
|
||||||
|
|
Loading…
Reference in a new issue