Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

72 speed up ci #74

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 60 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jobs:
nixCI:
name: Nix CI
mainCI:
name: Main CI
permissions:
actions: write
contents: write
Expand All @@ -18,21 +18,28 @@ jobs:
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-update-${{ hashfiles('**/flake.nix', '**/flake.lock', 'haskell/**/*') }}
primary-key: nix-update-${{ hashfiles('**/flake.nix', 'flake.lock', 'nix-dev/flake.lock', 'haskell/**/*') }}
restore-prefixes-first-match: nix-update-
gc-max-store-size-linux: 7500000000
gc-max-store-size-linux: 4500000000
purge: true
purge-prefixes: nix-update-
purge-created: 0
purge-primary-key: never
- name: Remove old cache profiles
run: rm -rf /nix/var/nix/profiles/cache
- name: Configure git for github-actions
- name: Configure git
env:
# required for gh
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}.
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: Pull latest changes
run: git pull --rebase --autostash
${{
github.head_ref
&& format('gh pr checkout {0}', github.event.pull_request.number)
|| format('git pull --rebase origin {0}', github.ref_name)
}}

git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Update flake locks
run: |-
nix profile install nix-dev/#updateLocks
Expand All @@ -44,15 +51,13 @@ jobs:
- name: Update extensions
run: |-
nix profile install nix-dev/#updateExtensions
nix run nix-dev/#updateExtensions -- --config .github/config.yaml
# nix run nix-dev/#updateExtensions -- --config .github/config.yaml
- name: Update extra extensions
run: |-
nix profile install nix-dev/#updateExtraExtensions
nix run nix-dev/#updateExtraExtensions
# nix run nix-dev/#updateExtraExtensions
- name: Commit and push changes
run: |-
git pull --rebase --autostash

git add .

git commit \
Expand All @@ -63,14 +68,52 @@ jobs:
|| echo "commit failed!"

git push
- name: Check template VSCodium
run: |
nix profile install template/
nix run template/ -- --list-extensions
- name: Save flakes
run: |-
nix profile install nix-dev/#saveFlakes
nix run nix-dev/#saveFlakes
templateCI:
name: Template
permissions:
actions: write
runs-on: ubuntu-22.04
needs: [ "mainCI" ]
steps:
- name: Checkout this repo
uses: actions/checkout@v4
- name: Configure git
env:
# required for gh
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
${{
github.head_ref
&& format('gh pr checkout {0}', github.event.pull_request.number)
|| format('git pull --rebase origin {0}', github.ref_name)
}}
- name: Install Nix
uses: nixbuild/nix-quick-install-action@v27
with:
nix_conf: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
substituters = https://cache.nixos.org/ https://nix-community.cachix.org https://cache.iog.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-template-${{ hashfiles('template') }}
restore-prefixes-first-match: nix-template-
gc-max-store-size-linux: 2000000000
purge: true
purge-prefixes: nix-template-
purge-created: 0
purge-primary-key: never
- name: Remove old cache profiles
run: rm -rf /nix/var/nix/profiles/cache
- name: Check template VSCodium
run: |
nix profile install template/
nix run template/ -- --list-extensions
name: Nix CI
"on":
pull_request: {}
Expand Down
257 changes: 124 additions & 133 deletions data/cache/open-vsx-latest.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions data/cache/open-vsx-release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[ {"engineVersion":"^1.82.0","lastUpdated":"2024-08-16T03:31:47.352811Z","missingTimes":5,"name":"gitlens","platform":"universal","publisher":"eamodio","sha256":"sha256-bpXrmtqrquq75Nnnm0M6waeFYvTDhCm7ybN39EpVvAk=","version":"15.3.0"}
[ {"engineVersion":"^1.82.0","lastUpdated":"2024-08-16T03:31:47.352811Z","missingTimes":6,"name":"gitlens","platform":"universal","publisher":"eamodio","sha256":"sha256-bpXrmtqrquq75Nnnm0M6waeFYvTDhCm7ybN39EpVvAk=","version":"15.3.0"}
, {"engineVersion":"^1.82.0","lastUpdated":"2024-08-22T03:28:23.878721Z","missingTimes":0,"name":"gitlens","platform":"universal","publisher":"eamodio","sha256":"sha256-bptcl0gp9AWWm5Es+lR9zcIjyTGK9Urio+wu/mqkCr4=","version":"15.3.1"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:18.904893Z","missingTimes":8,"name":"rust-analyzer","platform":"linux-x64","publisher":"rust-lang","sha256":"sha256-KgYzhfaRy7zfPm5cMnEZagg0v/Kf33OIEVugfSoc+Hc=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:16.961787Z","missingTimes":8,"name":"rust-analyzer","platform":"linux-arm64","publisher":"rust-lang","sha256":"sha256-wxW6Vf1raZyDjoH4YpVwVCbz+hj5SosO03dG4gWMSlg=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:17.705288Z","missingTimes":8,"name":"rust-analyzer","platform":"darwin-x64","publisher":"rust-lang","sha256":"sha256-vKA/QkptcPIzKSIoVro1b5hOVlv2kZE2swnbMAQ1wKk=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:16.337611Z","missingTimes":8,"name":"rust-analyzer","platform":"darwin-arm64","publisher":"rust-lang","sha256":"sha256-SB22pZ8JygYXqCL4i6kWtVNVJNT8+GNzqp6EKXWjTpQ=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:18.904893Z","missingTimes":9,"name":"rust-analyzer","platform":"linux-x64","publisher":"rust-lang","sha256":"sha256-KgYzhfaRy7zfPm5cMnEZagg0v/Kf33OIEVugfSoc+Hc=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:16.961787Z","missingTimes":9,"name":"rust-analyzer","platform":"linux-arm64","publisher":"rust-lang","sha256":"sha256-wxW6Vf1raZyDjoH4YpVwVCbz+hj5SosO03dG4gWMSlg=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:17.705288Z","missingTimes":9,"name":"rust-analyzer","platform":"darwin-x64","publisher":"rust-lang","sha256":"sha256-vKA/QkptcPIzKSIoVro1b5hOVlv2kZE2swnbMAQ1wKk=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-12T05:11:16.337611Z","missingTimes":9,"name":"rust-analyzer","platform":"darwin-arm64","publisher":"rust-lang","sha256":"sha256-SB22pZ8JygYXqCL4i6kWtVNVJNT8+GNzqp6EKXWjTpQ=","version":"0.3.2070"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-19T04:16:30.485614Z","missingTimes":0,"name":"rust-analyzer","platform":"linux-x64","publisher":"rust-lang","sha256":"sha256-v83wpKMdWmYn6jjH1dsZMSJW/8H2DA6vbqReGBiXP2E=","version":"0.3.2078"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-19T04:16:27.520585Z","missingTimes":0,"name":"rust-analyzer","platform":"linux-arm64","publisher":"rust-lang","sha256":"sha256-9xznt/XwGPhvwKdSEe3F85Mcvdu1IQdgt/W7qiTsRkQ=","version":"0.3.2078"}
, {"engineVersion":"^1.78.0","lastUpdated":"2024-08-19T04:16:25.826031Z","missingTimes":0,"name":"rust-analyzer","platform":"darwin-x64","publisher":"rust-lang","sha256":"sha256-4RenWpNgyIea2pQqjGaBjgGatBv1pqDasrSAS/oscO8=","version":"0.3.2078"}
Expand Down
Loading