From ad718cf41416cf07956624cb29ed490cd2068f7c Mon Sep 17 00:00:00 2001 From: chriscummings Date: Thu, 14 Nov 2024 13:35:36 -0600 Subject: [PATCH 1/8] ci(cache): Try caching things, idk --- .github/workflows/pytest.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0073cd2e..70b21f5d 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -37,6 +37,11 @@ jobs: - name: Check out the code uses: actions/checkout@v4 + - name: Cache Docker images. + uses: ScribeMD/docker-cache@0.3.7 + with: + key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yaml') }} + - name: Set up Docker uses: docker/setup-buildx-action@v3 - name: Install Docker Compose From 057476aa756b44318b04d283b2af7d2694efaaff Mon Sep 17 00:00:00 2001 From: chriscummings Date: Thu, 14 Nov 2024 13:54:14 -0600 Subject: [PATCH 2/8] ci(cache): try re-running with no changes From 6140728b0d2773893f732fe6a3e5c9bf6f5daa8e Mon Sep 17 00:00:00 2001 From: chriscummings Date: Thu, 14 Nov 2024 14:08:29 -0600 Subject: [PATCH 3/8] ci(cache): try re-running with no changes again From fc68f7b3c044ee93c72bb6e19bce0aa07c535c30 Mon Sep 17 00:00:00 2001 From: chriscummings Date: Thu, 14 Nov 2024 14:17:55 -0600 Subject: [PATCH 4/8] ci(cache): cache the build sutff too? --- .github/workflows/pytest.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 70b21f5d..b4b93222 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -42,6 +42,14 @@ jobs: with: key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yaml') }} + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-single-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-single-buildx + - name: Set up Docker uses: docker/setup-buildx-action@v3 - name: Install Docker Compose From 683eb71d3ab72cd09b142c2731f757616d696e3b Mon Sep 17 00:00:00 2001 From: chriscummings Date: Thu, 14 Nov 2024 14:18:50 -0600 Subject: [PATCH 5/8] ci(cache): whoops, use right version --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b4b93222..d70a66ce 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -43,7 +43,7 @@ jobs: key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yaml') }} - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-single-buildx-${{ github.sha }} From f13d2fee7fa737bb642b5ed209a89837d1637c05 Mon Sep 17 00:00:00 2001 From: chriscummings Date: Tue, 10 Dec 2024 10:37:54 -0600 Subject: [PATCH 6/8] refactor(build): re-do cache for new pipeline structure --- .github/workflows/behave.yml | 13 +++++++++++++ .github/workflows/behave_next_python.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/behave.yml b/.github/workflows/behave.yml index 34fb68f0..3815d685 100644 --- a/.github/workflows/behave.yml +++ b/.github/workflows/behave.yml @@ -26,6 +26,19 @@ jobs: - name: Check out the code uses: actions/checkout@v4 + - name: Cache Docker images. + uses: ScribeMD/docker-cache@0.3.7 + with: + key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yaml') }} + + - name: Cache Docker layers + uses: actions/cache@v4 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-single-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-single-buildx + - name: Set up Docker uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/behave_next_python.yml b/.github/workflows/behave_next_python.yml index 1c4b1a3c..cf9da06b 100644 --- a/.github/workflows/behave_next_python.yml +++ b/.github/workflows/behave_next_python.yml @@ -26,6 +26,19 @@ jobs: - name: Check out the code uses: actions/checkout@v4 + - name: Cache Docker images. + uses: ScribeMD/docker-cache@0.3.7 + with: + key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yaml') }} + + - name: Cache Docker layers + uses: actions/cache@v4 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-single-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-single-buildx + - name: Set up Docker uses: docker/setup-buildx-action@v3 From 6b03fa3cbcb72328d8151a6475118d900b7e556e Mon Sep 17 00:00:00 2001 From: chriscummings Date: Tue, 10 Dec 2024 11:37:03 -0600 Subject: [PATCH 7/8] ci(re-run): see if cache is hitting From caad11f6ef512fbc5efdb86e59f99dc31a173eea Mon Sep 17 00:00:00 2001 From: chriscummings Date: Tue, 10 Dec 2024 11:54:21 -0600 Subject: [PATCH 8/8] ci(re-run): see if cache is hitting take 2