Skip to content

Commit

Permalink
fix(CI): update action
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Feb 21, 2024
1 parent 4cbd9d0 commit 751cf01
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 800 deletions.
13 changes: 13 additions & 0 deletions .github/actions/common-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ inputs:
runs:
using: "composite"
steps:
- uses: jlumbroso/free-disk-space@main
with:
# These 5 options give back ~32Gb. If that's not enough, the remaining flags can be set to `true` at the expense
# of this action taking longer to finish
android: true
dotnet: true
haskell: true
docker-images: true
swap-storage: true

large-packages: false
tool-cache: false

- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
Expand Down
30 changes: 30 additions & 0 deletions .github/actions/minimal/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Setup Environment
inputs:
CACHIX_AUTH_TOKEN:
required: true
description: "Cachix Auth Token"
SECRET_GITHUB_TOKEN:
required: true
description: "Github Secret Token"
runs:
using: "composite"
steps:
- uses: jlumbroso/free-disk-space@main
with:
# These 5 options give back ~32Gb. If that's not enough, the remaining flags can be set to `true` at the expense
# of this action taking longer to finish
android: true
dotnet: true
haskell: true
docker-images: true
swap-storage: true

large-packages: false
tool-cache: false

- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
github_token: ${{ inputs.SECRET_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
submodules: "recursive"

- name: Setup
uses: ./.github/actions/common-setup
uses: ./.github/actions/minimal
with:
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/login-action@v3
- uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
1 change: 1 addition & 0 deletions nix/std/cells/repo/jupyenv/example.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ in
"Plots"
"GLMakie"
"DataFrames"
"JSON3"
];
extraKernelSpc = {
env = {
Expand Down
Loading

0 comments on commit 751cf01

Please sign in to comment.