From c8cc93b7a5e1d54c26834f19e65d2e053607e275 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Wed, 3 May 2023 17:57:24 +0200 Subject: [PATCH 1/8] trigger_workflows --- trigger_workflows | 1 + 1 file changed, 1 insertion(+) create mode 100644 trigger_workflows diff --git a/trigger_workflows b/trigger_workflows new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/trigger_workflows @@ -0,0 +1 @@ +0 From 288f7b38d2f0c987d77c19511a0b389f28dc704e Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Wed, 3 May 2023 18:17:38 +0200 Subject: [PATCH 2/8] trigger_workflows --- trigger_workflows | 2 +- tw.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tw.ps1 diff --git a/trigger_workflows b/trigger_workflows index 573541ac97..56a6051ca2 100644 --- a/trigger_workflows +++ b/trigger_workflows @@ -1 +1 @@ -0 +1 \ No newline at end of file diff --git a/tw.ps1 b/tw.ps1 new file mode 100644 index 0000000000..50c0630903 --- /dev/null +++ b/tw.ps1 @@ -0,0 +1 @@ +New-Item -Name "trigger_workflows" -Value ((Get-Content trigger_workflows) / 1 + 1) -Force From c4d34b5f9244fd5bfd27fd9b7d6b51060476f0be Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Wed, 3 May 2023 18:23:58 +0200 Subject: [PATCH 3/8] trigger_workflows --- trigger_workflows | 2 +- tw.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/trigger_workflows b/trigger_workflows index 56a6051ca2..d8263ee986 100644 --- a/trigger_workflows +++ b/trigger_workflows @@ -1 +1 @@ -1 \ No newline at end of file +2 \ No newline at end of file diff --git a/tw.ps1 b/tw.ps1 index 50c0630903..8be22560c4 100644 --- a/tw.ps1 +++ b/tw.ps1 @@ -1 +1,4 @@ -New-Item -Name "trigger_workflows" -Value ((Get-Content trigger_workflows) / 1 + 1) -Force +New-Item -Name "trigger_workflows" -Value ((Get-Content trigger_workflows) / 1 + 1) -Force; +git add .; +git commit -m "trigger_workflows"; +git push origin (git rev-parse --abbrev-ref HEAD); From ac4b0010ea3db41e9ed45f81cf0bc39264853cfd Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Wed, 3 May 2023 18:50:47 +0200 Subject: [PATCH 4/8] trigger_workflows --- .github/workflows/test.yml | 1 + trigger_workflows | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08137af2b7..178058ca47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,7 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} + cache: false - name: Setup Golang caches uses: actions/cache@v3 with: diff --git a/trigger_workflows b/trigger_workflows index d8263ee986..e440e5c842 100644 --- a/trigger_workflows +++ b/trigger_workflows @@ -1 +1 @@ -2 \ No newline at end of file +3 \ No newline at end of file From 9bc85c42a7c533bf3f0e6b9c7797ca00018a27b5 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Wed, 3 May 2023 19:02:01 +0200 Subject: [PATCH 5/8] trigger_workflows --- .github/workflows/test.yml | 23 ++++++----------------- trigger_workflows | 2 +- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 178058ca47..c9ae07490b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,23 +25,12 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - cache: false - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- + cache: true + cache-dependency-path: | + ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + ~\AppData\Local\go-build - name: Fetch Repository uses: actions/checkout@v3 - name: Run Test diff --git a/trigger_workflows b/trigger_workflows index e440e5c842..bf0d87ab1b 100644 --- a/trigger_workflows +++ b/trigger_workflows @@ -1 +1 @@ -3 \ No newline at end of file +4 \ No newline at end of file From 51500497b28eb2f89cd6614e50da195ed7a73ad4 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Thu, 4 May 2023 11:25:01 +0200 Subject: [PATCH 6/8] Setup for actions/cache@v3 testing --- .github/workflows/test.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9ae07490b..962edbf6c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,19 +18,34 @@ jobs: strategy: matrix: go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x] - platform: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.platform }} + runs-on: windows-latest steps: - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - cache: true + cache: false cache-dependency-path: | ~/go/pkg/mod ~/.cache/go-build ~/Library/Caches/go-build ~\AppData\Local\go-build + - name: Setup Golang caches + uses: actions/cache@v3 + with: + # In order: + # * Module download cache + # * Build cache (Linux) + # * Build cache (Mac) + # * Build cache (Windows) + path: | + ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + ~\AppData\Local\go-build + key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-${{ matrix.go-version }}- - name: Fetch Repository uses: actions/checkout@v3 - name: Run Test From ac306d22a638c8ffd9f305eb0d30ed2ade32470f Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Thu, 4 May 2023 11:29:18 +0200 Subject: [PATCH 7/8] Leave only Windows paths --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 962edbf6c0..9603deefd0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,11 +24,9 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - cache: false + cache: true cache-dependency-path: | ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build ~\AppData\Local\go-build - name: Setup Golang caches uses: actions/cache@v3 From c3ca2a42b44302f4515be3bbbef31500a0620790 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Thu, 4 May 2023 11:30:15 +0200 Subject: [PATCH 8/8] Leave caching only in actions/cache --- .github/workflows/test.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9603deefd0..fca477a96f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,10 +24,7 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - cache: true - cache-dependency-path: | - ~/go/pkg/mod - ~\AppData\Local\go-build + cache: false - name: Setup Golang caches uses: actions/cache@v3 with: @@ -38,8 +35,6 @@ jobs: # * Build cache (Windows) path: | ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build ~\AppData\Local\go-build key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: |