update CI for release mode and forgejo install
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 6m38s
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 6m38s
This commit is contained in:
parent
1b4788f469
commit
7a6086447c
8 changed files with 56 additions and 14 deletions
|
@ -18,11 +18,17 @@ jobs:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: https://github.com/mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: 0.14.0
|
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
|
- 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
|
# Zig build scripts don't have the ability to import depenedencies directly
|
||||||
# (https://github.com/ziglang/zig/issues/18164). We can allow downstream
|
# (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")
|
# 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 }}"
|
# - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}"
|
||||||
- name: Publish source code with generated models
|
- name: Publish source code with generated models
|
||||||
run: |
|
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 \
|
--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
|
https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/${{ github.sha }}-with-models.tar.gz
|
||||||
- name: Build example
|
- name: Build example
|
||||||
|
|
|
@ -26,15 +26,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: zig-mach
|
ref: zig-mach
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: https://github.com/mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: mach-latest
|
version: mach-latest
|
||||||
|
- name: Restore Zig caches
|
||||||
|
uses: https://github.com/Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929
|
||||||
- name: Run gen
|
- name: Run gen
|
||||||
run: zig build gen --verbose
|
run: zig build gen --verbose
|
||||||
- name: Run smoke test
|
- name: Run smoke test
|
||||||
run: zig build smoke-test --verbose
|
run: zig build smoke-test --verbose
|
||||||
- name: Run full tests
|
- 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,
|
# 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
|
# which it then strips out on download. So we need to shove everything inside a directory
|
||||||
# the way GitHub/Gitea does for repo archives
|
# 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 }}"
|
# - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}"
|
||||||
- name: Publish source code with generated models
|
- name: Publish source code with generated models
|
||||||
run: |
|
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 \
|
--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
|
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
|
- name: Build example
|
||||||
|
|
|
@ -26,11 +26,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: zig-develop
|
ref: zig-develop
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: https://github.com/mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: master
|
version: master
|
||||||
- name: Run tests
|
- name: Restore Zig caches
|
||||||
run: zig build test --verbose
|
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,
|
# 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
|
# which it then strips out on download. So we need to shove everything inside a directory
|
||||||
# the way GitHub/Gitea does for repo archives
|
# 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 }}"
|
# - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}"
|
||||||
- name: Publish source code with generated models
|
- name: Publish source code with generated models
|
||||||
run: |
|
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 \
|
--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
|
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
|
- name: Build example
|
||||||
|
|
|
@ -20,11 +20,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: zig-0.13
|
ref: zig-0.13
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: https://github.com/mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: 0.13.0
|
version: 0.13.0
|
||||||
- name: Run tests
|
- name: Restore Zig caches
|
||||||
run: zig build test --verbose
|
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
|
# Zig build scripts don't have the ability to import depenedencies directly
|
||||||
# (https://github.com/ziglang/zig/issues/18164). We can allow downstream
|
# (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")
|
# 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 }}"
|
# - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}"
|
||||||
- name: Publish source code with generated models
|
- name: Publish source code with generated models
|
||||||
run: |
|
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 \
|
--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
|
https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/${{ github.sha }}-with-models.tar.gz
|
||||||
- name: Build example
|
- name: Build example
|
||||||
|
|
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
|
@ -14,7 +14,11 @@ jobs:
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
- name: Restore Zig caches
|
||||||
|
uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build test -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
|
||||||
|
- 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
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
|
|
4
.github/workflows/zig-mach.yaml
vendored
4
.github/workflows/zig-mach.yaml
vendored
|
@ -14,7 +14,11 @@ jobs:
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: mach-latest
|
version: mach-latest
|
||||||
|
- name: Restore Zig caches
|
||||||
|
uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build test -Dbroken-windows --verbose
|
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
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
|
|
4
.github/workflows/zig-nightly.yaml
vendored
4
.github/workflows/zig-nightly.yaml
vendored
|
@ -14,7 +14,11 @@ jobs:
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: master
|
version: master
|
||||||
|
- name: Restore Zig caches
|
||||||
|
uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build test -Dbroken-windows --verbose
|
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
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
|
|
7
.github/workflows/zig-previous.yaml
vendored
7
.github/workflows/zig-previous.yaml
vendored
|
@ -14,7 +14,14 @@ jobs:
|
||||||
uses: mlugg/setup-zig@v1.2.1
|
uses: mlugg/setup-zig@v1.2.1
|
||||||
with:
|
with:
|
||||||
version: 0.13.0
|
version: 0.13.0
|
||||||
|
- name: Restore Zig caches
|
||||||
|
uses: Hanaasagi/zig-action-cache@3954aae427f8b05914e08dfd79f15e1f2e435929
|
||||||
- name: Run tests
|
- 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
|
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
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
|
|
Loading…
Add table
Reference in a new issue