Skip to content

Commit

Permalink
Updates to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
poelzi committed Nov 24, 2020
1 parent 497e4f0 commit 8e636ef
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/nix-dev.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "NixOS Builds"
on:
pull_request:
push:
jobs:
dev:
name: "nix-shell"
runs-on: ubuntu-latest
steps:
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
uses: actions/cache@v1.1.0
with:
path: .ccache
key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } }
restore-keys: |
${ { matrix.config.name } }-ccache-
- name: cache nix store
uses: actions/cache@v1.1.0
with:
path: /nix/store
key: ${ { matrix.config.name } }-nix-store
restore-keys: |
${ { matrix.config.name } }-nix-store
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: nix-shell --arg enableKeyfinder true --arg defaultLv2Plugins true --command "configure && build && run-tests"
pkg:
name: "nix-build"
runs-on: ubuntu-latest
steps:
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
uses: actions/cache@v1.1.0
with:
path: .ccache
key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } }
restore-keys: |
${ { matrix.config.name } }-ccache-
- name: cache nix store
uses: actions/cache@v1.1.0
with:
path: /nix/store
key: ${ { matrix.config.name } }-nix-store
restore-keys: |
${ { matrix.config.name } }-nix-store
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: nix-build -f shell.nix --arg releaseMode true --arg enableKeyfinder true --arg defaultLv2Plugins true

0 comments on commit 8e636ef

Please sign in to comment.