diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0113aee5641..84391956812 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -37,13 +37,29 @@ jobs: env: cache-name: cache-node-modules with: - path: ~/.npm + path: **/node_modules/ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- + - uses: actions/cache@v2 + 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 + %LocalAppData%\go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: npm install gui run: | cd gui/velociraptor/ diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 3e7fa6c8cb1..dd7fd9a75ab 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -5,12 +5,28 @@ jobs: name: Windows Test runs-on: windows-latest steps: - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 id: go + - uses: actions/cache@v2 + 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 + %LocalAppData%\go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Check out code into the Go module directory uses: actions/checkout@v2