diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 32aaf0c..d2d7049 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,11 +18,17 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - name: Setup Zig - uses: mlugg/setup-zig@v1.2.1 + uses: https://github.com/mlugg/setup-zig@v1.2.1 with: version: 0.14.0 + - name: Restore Zig caches + uses: https://github.com/Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 + - name: Run smoke test + run: zig build smoke-test --verbose - name: Run tests - run: zig build test --verbose + run: zig build test --verbose --summary all + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe --verbose # Zig build scripts don't have the ability to import depenedencies directly # (https://github.com/ziglang/zig/issues/18164). We can allow downstream # build scripts to import aws with a few tweaks, but we can't @import("src/aws.zig") @@ -67,7 +73,7 @@ jobs: # - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}" - name: Publish source code with generated models run: | - curl --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ + curl -s --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ --upload-file ${{ runner.temp }}/${{ github.sha }}-with-models.tar.gz \ https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/${{ github.sha }}-with-models.tar.gz - name: Build example diff --git a/.gitea/workflows/zig-mach.yaml b/.gitea/workflows/zig-mach.yaml index 12c3903..5232cb9 100644 --- a/.gitea/workflows/zig-mach.yaml +++ b/.gitea/workflows/zig-mach.yaml @@ -26,15 +26,19 @@ jobs: with: ref: zig-mach - name: Setup Zig - uses: mlugg/setup-zig@v1.2.1 + uses: https://github.com/mlugg/setup-zig@v1.2.1 with: version: mach-latest + - name: Restore Zig caches + uses: https://github.com/Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 - name: Run gen run: zig build gen --verbose - name: Run smoke test run: zig build smoke-test --verbose - name: Run full tests - run: zig build test --verbose + run: zig build test --verbose --summary all + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe --verbose # Zig package manager expects everything to be inside a directory in the archive, # which it then strips out on download. So we need to shove everything inside a directory # the way GitHub/Gitea does for repo archives @@ -67,7 +71,7 @@ jobs: # - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}" - name: Publish source code with generated models run: | - curl --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ + curl -s --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ --upload-file ${{ runner.temp }}/${{ github.sha }}${{ env.PKG_PREFIX }}-with-models.tar.gz \ https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/${{ github.sha }}${{ env.PKG_PREFIX }}-with-models.tar.gz - name: Build example diff --git a/.gitea/workflows/zig-nightly.yaml b/.gitea/workflows/zig-nightly.yaml index e97917e..7a60a04 100644 --- a/.gitea/workflows/zig-nightly.yaml +++ b/.gitea/workflows/zig-nightly.yaml @@ -26,11 +26,17 @@ jobs: with: ref: zig-develop - name: Setup Zig - uses: mlugg/setup-zig@v1.2.1 + uses: https://github.com/mlugg/setup-zig@v1.2.1 with: version: master - - name: Run tests - run: zig build test --verbose + - name: Restore Zig caches + uses: https://github.com/Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 + - name: Run smoke test + run: zig build smoke-test --verbose + - name: Run full tests + run: zig build test --verbose --summary all + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe --verbose # Zig package manager expects everything to be inside a directory in the archive, # which it then strips out on download. So we need to shove everything inside a directory # the way GitHub/Gitea does for repo archives @@ -63,7 +69,7 @@ jobs: # - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}" - name: Publish source code with generated models run: | - curl --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ + curl -s --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ --upload-file ${{ runner.temp }}/${{ github.sha }}${{ env.PKG_PREFIX }}-with-models.tar.gz \ https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/${{ github.sha }}${{ env.PKG_PREFIX }}-with-models.tar.gz - name: Build example diff --git a/.gitea/workflows/zig-previous.yaml b/.gitea/workflows/zig-previous.yaml index 1bc831f..20375ac 100644 --- a/.gitea/workflows/zig-previous.yaml +++ b/.gitea/workflows/zig-previous.yaml @@ -20,11 +20,18 @@ jobs: with: ref: zig-0.13 - name: Setup Zig - uses: mlugg/setup-zig@v1.2.1 + uses: https://github.com/mlugg/setup-zig@v1.2.1 with: version: 0.13.0 - - name: Run tests - run: zig build test --verbose + - name: Restore Zig caches + uses: https://github.com/Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 + - name: Run smoke test + run: zig build smoke-test --verbose + - name: Run full tests + run: zig build test --verbose --summary all + # Release mode fix not backported to 0.13.0 code + #- name: Run tests (release mode) + # run: zig build test -Doptimize=ReleaseSafe --verbose # Zig build scripts don't have the ability to import depenedencies directly # (https://github.com/ziglang/zig/issues/18164). We can allow downstream # build scripts to import aws with a few tweaks, but we can't @import("src/aws.zig") @@ -69,7 +76,7 @@ jobs: # - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}" - name: Publish source code with generated models run: | - curl --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ + curl -s --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \ --upload-file ${{ runner.temp }}/${{ github.sha }}-with-models.tar.gz \ https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/${{ github.sha }}-with-models.tar.gz - name: Build example diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 313e87b..ed47037 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,11 @@ jobs: uses: mlugg/setup-zig@v1.2.1 with: version: 0.14.0 + - name: Restore Zig caches + uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 - name: Run tests run: zig build test -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks - name: Build example run: ( cd example && zig build ) # Make sure example builds diff --git a/.github/workflows/zig-mach.yaml b/.github/workflows/zig-mach.yaml index 0d7e65e..f5ae3ce 100644 --- a/.github/workflows/zig-mach.yaml +++ b/.github/workflows/zig-mach.yaml @@ -14,7 +14,11 @@ jobs: uses: mlugg/setup-zig@v1.2.1 with: version: mach-latest + - name: Restore Zig caches + uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 - name: Run tests run: zig build test -Dbroken-windows --verbose + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks - name: Build example run: ( cd example && zig build ) # Make sure example builds diff --git a/.github/workflows/zig-nightly.yaml b/.github/workflows/zig-nightly.yaml index 772f6b4..72036fd 100644 --- a/.github/workflows/zig-nightly.yaml +++ b/.github/workflows/zig-nightly.yaml @@ -14,7 +14,11 @@ jobs: uses: mlugg/setup-zig@v1.2.1 with: version: master + - name: Restore Zig caches + uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 - name: Run tests run: zig build test -Dbroken-windows --verbose + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks - name: Build example run: ( cd example && zig build ) # Make sure example builds diff --git a/.github/workflows/zig-previous.yaml b/.github/workflows/zig-previous.yaml index e6f8096..3a34ba2 100644 --- a/.github/workflows/zig-previous.yaml +++ b/.github/workflows/zig-previous.yaml @@ -14,7 +14,14 @@ jobs: uses: mlugg/setup-zig@v1.2.1 with: version: 0.13.0 + - name: Restore Zig caches + uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929 - name: Run tests + - name: Run tests (release mode) + run: zig build test -Doptimize=ReleaseSafe -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks run: zig build test -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks + # This is broken without intension of backporting the patch at this time + # - name: Run tests (release mode) + # run: zig build test -Doptimize=ReleaseSafe -Dbroken-windows --verbose # Github runners try to run the windows tests despite disabling foreign checks - name: Build example run: ( cd example && zig build ) # Make sure example builds