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

PMM-7 fix caching of modules #2128

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 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
2 changes: 2 additions & 0 deletions .github/workflows/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
echo "$GOBIN" >> $GITHUB_PATH

- name: Enable Go modules cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down Expand Up @@ -131,6 +132,7 @@ jobs:
echo "$GOBIN" >> $GITHUB_PATH

- name: Enable Go modules cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
echo "$HOME/gotip/bin" >> $GITHUB_PATH

- name: Enable Go modules cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,31 @@ jobs:
./make.bash
echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
echo "$HOME/gotip/bin" >> $GITHUB_PATH

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
lfs: true

- name: Enable Go modules cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ matrix.os }}-go-${{ matrix.go.version }}-modules-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.os }}-go-${{ matrix.go.version }}-modules-

- name: Enable Go build cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/.cache/go-build
key: ${{ matrix.os }}-go-${{ matrix.go.version }}-build-${{ github.ref }}-${{ hashFiles('**') }}
restore-keys: |
${{ matrix.os }}-go-${{ matrix.go.version }}-build-${{ github.ref }}-
${{ matrix.os }}-go-${{ matrix.go.version }}-build-

- name: Clean Go modules cache
run: go clean -modcache

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
echo "$HOME/gotip/bin" >> $GITHUB_PATH

- name: Enable Go modules cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
wget https://raw.githubusercontent.com/percona/pmm-doc/main/docs/release-notes/$version.md -O ${{ github.workspace }}-CHANGELOG.txt
env:
release_tag: ${{ github.ref }}

- name: Convert mkdocs
shell: bash --noprofile --norc -ex {0}
run: |
Expand All @@ -24,6 +25,7 @@ jobs:
grep -rl '!!! alert alert-info' ${{ github.workspace }}-CHANGELOG.txt | xargs --no-run-if-empty sed -i 's/\!\!\! alert alert-info/\>/g'
grep -rl '!!! note alert alert-primary' ${{ github.workspace }}-CHANGELOG.txt | xargs --no-run-if-empty sed -i 's/\!\!\! note alert alert-primary "\(.*\)"/\> \:memo\: **\1**/g'
grep -rl '!!! note alert alert-primary' ${{ github.workspace }}-CHANGELOG.txt | xargs --no-run-if-empty sed -i 's/\!\!\! note alert alert-primary/\> \:memo\: **Note**/g'

- name: Create Release
uses: softprops/action-gh-release@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/vmproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
echo "$GOBIN" >> $GITHUB_PATH

- name: Enable Go modules cache
if: env.GO_VERSION == 'tip'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down