From eec7bc0a95dbf97a53d39017fd4f58940fe8fe1e Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 9 Mar 2022 16:31:14 -0800 Subject: [PATCH] ci: fixed github action Signed-off-by: Sam Alba --- .github/workflows/dagger-ci.yml | 12 +++++++----- ci/main.cue | 4 +++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dagger-ci.yml b/.github/workflows/dagger-ci.yml index e1e8599d..03d3f90b 100644 --- a/.github/workflows/dagger-ci.yml +++ b/.github/workflows/dagger-ci.yml @@ -26,17 +26,19 @@ on: - 'go.sum' - '.github/workflows/dagger-ci.yml' +env: + DAGGER_LOG_FORMAT: plain jobs: - deploy: + build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - - name: Dagger - uses: dagger/dagger-for-github@v1 + name: Dagger CI + uses: dagger/dagger-for-github@v2 with: - age-key: ${{ secrets.DAGGER_AGE_KEY }} - args: up ./ci + workdir: ci + args: do build diff --git a/ci/main.cue b/ci/main.cue index ebaf5f79..a80281fa 100644 --- a/ci/main.cue +++ b/ci/main.cue @@ -9,7 +9,9 @@ dagger.#Plan & { // FIXME: Ideally we would want to automatically set the platform's arch identical to the host // to avoid the performance hit caused by qemu (linter goes from <3s to >3m when arch is x86) - platform: "linux/aarch64" + // Uncomment if running locally on Mac M1 to bypass qemu + // platform: "linux/aarch64" + platform: "linux/amd64" client: filesystem: { "../": read: exclude: [