Skip to content

Commit

Permalink
ci: save space in github actions (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr authored Dec 21, 2024
1 parent bc2c63c commit 7068b3a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 29 deletions.
10 changes: 10 additions & 0 deletions .github/actions/devenv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ inputs:
runs:
using: composite
steps:
- name: free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
shell: bash

- name: cache nix store
uses: actions/cache@v4
id: nix-cache
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,10 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
version: ["1.79.0", ""]
version: ["1.81", ""]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.version }}
steps:
- name: free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -116,15 +107,6 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-24.04
steps:
- name: free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -174,7 +156,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
version: ["1.79.0", ""]
version: ["1.81", ""]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.version }}
steps:
Expand Down
14 changes: 7 additions & 7 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1734669812,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "099934f3d7ec89d14fa6a6950205fa7da5b55aba",
"lastModified": 1733477122,
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "7bd9e84d0452f6d2e63b6e6da29fe73fac951857",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixpkgs",
"owner": "cachix",
"ref": "rolling",
"repo": "devenv-nixpkgs",
"type": "github"
}
},
Expand Down
2 changes: 1 addition & 1 deletion devenv.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/master
url: github:cachix/devenv-nixpkgs/rolling
rust-overlay:
url: github:oxalica/rust-overlay
overlays:
Expand Down
2 changes: 1 addition & 1 deletion setup/cache-versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"solana": "v2.1.5"
"solana": "v2.1.6"
}

0 comments on commit 7068b3a

Please sign in to comment.