From 82463cb3c3b107dbeed2b5f2cec0751bdae4b05d Mon Sep 17 00:00:00 2001 From: fx Date: Sun, 15 Oct 2023 14:53:23 +0200 Subject: test with build.rs and cache-to and from --- .github/workflows/test.yml | 8 +++++--- build.rs | 5 +++++ build.rs.disabled | 5 ----- 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 build.rs delete mode 100644 build.rs.disabled diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 649f295..97a0d2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ on: push: branches: [ "main", "test" ] pull_request: - branches: [ "main", "test" ] + branches: [ "main" ] workflow_dispatch: env: @@ -53,6 +53,8 @@ jobs: with: push: true platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max tags: | - ghcr.io/fxqnlr/webol:latest - ghcr.io/fxqnlr/webol:${{ github.run_number }} \ No newline at end of file + ghcr.io/fxqnlr/webol:dev-latest + ghcr.io/fxqnlr/webol:dev-${{ github.run_number }} \ No newline at end of file diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..7609593 --- /dev/null +++ b/build.rs @@ -0,0 +1,5 @@ +// generated by `sqlx migrate build-script` +fn main() { + // trigger recompilation when a new migration is added + println!("cargo:rerun-if-changed=migrations"); +} \ No newline at end of file diff --git a/build.rs.disabled b/build.rs.disabled deleted file mode 100644 index 7609593..0000000 --- a/build.rs.disabled +++ /dev/null @@ -1,5 +0,0 @@ -// generated by `sqlx migrate build-script` -fn main() { - // trigger recompilation when a new migration is added - println!("cargo:rerun-if-changed=migrations"); -} \ No newline at end of file -- cgit v1.2.3