Skip to content

Commit

Permalink
Big update squashed (#19)
Browse files Browse the repository at this point in the history
* fix: message

fix: make pros and cons bold

add: python script that generates table

fix: rm cross-os mentions

fix: rm tests

upd: action.yaml s

upd: inputs

fix: update action.yaml-s

fix: add cli, generate an html table

upd: action.yaml-s

fix: translate table script

add: direnv config

fix: env variable

upd: action.yamls

upd: readmes

upd: constants

add: parsed inputs

upd: action.yml-s

upd: readmes

fix: put a single newline between sections

upd: constants

fix: restore helpers

fix: mv action utils

rm: test utils

upd: state provider

upd: inputs

upd: restore implementation

upd: garbage collection

upd: action.yml-s

upd: purge

upd: readmes

upd: inputs

upd: constants

upd: action.yml-s

upd: readmes

upd: constants

upd: action.yaml-s

upd: readmes

upd: inputs

upd: state provider

upd: restore

upd: action.yml-s

upd: constants

upd: inputs

upd: action utils

upd: purge

upd: restore

upd: restore implementation

upd: save implementation

add: nix template for action.yaml

fix: script output

fix: scripts and devshell

add: ignore generated tables

upd: readmes

upd: action.yml-s

add: link to patterns docs

fix: script

upd: input

upd: descriptions

upd: readme

upd: restore, impl

fix: scripts

upd: input names

add: nix input

upd: readme

add: "save" input

upd: ci

action: build the action

fix: ci inputs

fix: ci input

try: set token

fix: make token optional

fix: add token input

action: build the action

fix: use secrets.github_token

Consume latest toolkit and fix dangling promise bug (#1217)

* Consume latest toolkit and fix dangling promise bug

* Pass earlyExit parameter to run method so tests don't hang

* Pass earlyExit parameter to run method so tests don't hang

* Refactor restore files to have better patterns for testing

* style

bump action version to 3.3.2

Add to RELEASES.md

action: build the action

fix: use github.token

try: use github_token in the ci file

rm: github_token

* Merge remote-tracking branch 'upstream/main' into big-update

* upd: version

fix: output

upd: package.lock

upd: script

action: build the action

fix: inputs

fix: require token

action: build the action

add: permission

fix: circular imports

action: build the action

fix: messages

fix: ci

action: build the action

fix: gc messages

action: build the action

fix: edit name

fix: method name

* action: build the action

* Squashed 'actions-toolkit/' content from commit 950e171

git-subtree-dir: actions-toolkit
git-subtree-split: 950e171

* add: supply tar args

* action: build the action

* add: note about @actions/toolkit

* fix: message

* upd: ci

* action: build the action

---------

Co-authored-by: github-actions <[email protected]>
  • Loading branch information
deemp and github-actions committed Dec 11, 2023
1 parent 1bb58e9 commit 70d0c95
Show file tree
Hide file tree
Showing 313 changed files with 64,198 additions and 20,780 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
48 changes: 24 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ jobs:
make-similar-caches:
name: Make similar caches
needs: check-cache-changes
permissions:
actions: write
strategy:
matrix:
os:
Expand All @@ -122,21 +124,25 @@ jobs:
- name: Rebase
run: git pull --rebase

- uses: nixbuild/nix-quick-install-action@v25
- uses: nixbuild/nix-quick-install-action@v26
with:
nix_conf: |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
keep-outputs = true
- name: Restore and cache Nix store - ${{ matrix.id }}
uses: ./.
with:
# save a new cache every time ci file changes
key: similar-cache-${{ matrix.os }}-id-${{ matrix.id }}-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-keys: |
similar-cache-${{ matrix.os }}-common-
restore-key-hit: true

primary-key: similar-cache-${{ matrix.os }}-individual-${{ matrix.id }}-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-prefixes-first-match: similar-cache-${{ matrix.os }}-common-

# remove own old versions
purge: true
purge-created: 0
purge-prefixes: similar-cache-${{ matrix.os }}-individual-${{ matrix.id }}-

# Merge similar individual `id` caches
# Purge individual caches and old `common` caches
# Save new `common` caches
Expand Down Expand Up @@ -171,15 +177,14 @@ jobs:
- name: Save Nix store
uses: ./.
with:
key: similar-cache-${{ matrix.os }}-common-${{ hashFiles('.github/workflows/ci.yaml') }}
extra-restore-keys: |
similar-cache-${{ matrix.os }}-id-
primary-key: similar-cache-${{ matrix.os }}-common-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-prefixes-all-matches: similar-cache-${{ matrix.os }}-individual-

purge: true
purge-keys: |
similar-cache-${{ matrix.os }}-id-
purge-prefixes: |
similar-cache-${{ matrix.os }}-individual-
similar-cache-${{ matrix.os }}-common-
purge-created-max-age: 0
purge-created: 0

compare-run-times:
name: Job with caching
Expand Down Expand Up @@ -212,27 +217,20 @@ jobs:
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
keep-outputs = true
# -------- THIS ACTION --------
- name: Restore and cache Nix store
if: ${{ matrix.do-cache }}
uses: ./.
with:
# save a new cache every time ci file changes
key: cache-${{ matrix.os }}-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-keys: |
cache-${{ matrix.os }}-
primary-key: cache-${{ matrix.os }}-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-prefixes-first-match: cache-${{ matrix.os }}-

gc-linux: true
gc-max-store-size-linux: 8000000000
gc-macos: true
gc-max-store-size-macos: 8000000000

purge: true
purge-keys: cache-${{ matrix.os }}-
purge-created: true
purge-created-max-age: 172800

# -------- THIS ACTION --------
purge-prefixes: cache-${{ matrix.os }}-
purge-created: 172800

# Uncomment to debug this job
# - name: Setup tmate session
Expand All @@ -241,9 +239,11 @@ jobs:
- name: Show profile
run: nix profile list

- name: Lock nixpkgs
- name: Lock and install nixpkgs
run: |
nix registry add nixpkgs github:NixOS/nixpkgs/5daaa32204e9c46b05cd709218b7ba733d07e80c
nix registry list
nix profile install $(nix flake archive nixpkgs --json | jq -r '.path')
- name: Show profile
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,8 @@ typings/
# Text editor files
.vscode/

.direnv
.direnv

__pycache__

table.md
2 changes: 1 addition & 1 deletion .licenses/npm/@actions/cache.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .licenses/npm/@actions/http-client.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

221 changes: 89 additions & 132 deletions README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,7 @@
### 3.3.1

- Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck.

### 3.3.2

- Fixes bug with Azure SDK causing blob downloads to get stuck.
233 changes: 0 additions & 233 deletions __tests__/actionUtils.test.ts

This file was deleted.

Loading

0 comments on commit 70d0c95

Please sign in to comment.