-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add
FilterInPlace
method to maps and update module
- run rekres - Deprecate `maps.Clone` (implemented in runtime since 1.21), `maps.Clear` (implemented as builtin function since 1.21) and `maps.Copy` functions. - Fix typos. - Add `FilterInPlace` method to key-value containers. - Add `Len` method to key-value containers. - Use `clear` builtin in `ConcurrentMap.Clear`. - Use `slices` package instead of `sort` for sorting in tests. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
- Loading branch information
Showing
9 changed files
with
230 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2023-09-17T20:55:00Z by kres latest. | ||
|
||
name: default | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
pull_request: {} | ||
env: | ||
CI_ARGS: --cache-from=type=registry,ref=registry.dev.siderolabs.io/${GITHUB_REPOSITORY}:buildcache --cache-to=type=registry,ref=registry.dev.siderolabs.io/${GITHUB_REPOSITORY}:buildcache,mode=max | ||
jobs: | ||
default: | ||
permissions: | ||
contents: write | ||
packages: write | ||
runs-on: | ||
- self-hosted | ||
- X64 | ||
if: ${{ !startsWith(github.head_ref, 'renovate/') || !startsWith(github.head_ref, 'renovate/') }} | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Unshallow | ||
run: | | ||
git fetch --prune --unshallow | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
config-inline: | | ||
[worker.oci] | ||
gc = true | ||
gckeepstorage = 100000 # 100 GiB | ||
[[worker.oci.gcpolicy]] | ||
keepBytes = 32212254720 # 30 GiB | ||
keepDuration = 604800 | ||
filters = [ "type==source.local", "type==exec.cachemount", "type==source.git.checkout"] | ||
[[worker.oci.gcpolicy]] | ||
all = true | ||
keepBytes = 107374182400 # 100 GiB | ||
- name: base | ||
run: | | ||
make base | ||
- name: unit-tests | ||
run: | | ||
make unit-tests | ||
- name: unit-tests-race | ||
run: | | ||
make unit-tests-race | ||
- name: coverage | ||
run: | | ||
make coverage | ||
- name: lint | ||
run: | | ||
make lint | ||
- name: Generate Checksums | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
sha256sum _out/* > _out/sha256sum.txt | ||
sha512sum _out/* > _out/sha512sum.txt | ||
- name: release-notes | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
make release-notes | ||
- name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: crazy-max/ghaction-github-release@v1 | ||
with: | ||
body_path: _out/RELEASE_NOTES.md | ||
draft: "true" | ||
files: |- | ||
_out/* | ||
_out/sha*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.