Compare commits
2 Commits
feature/us
...
ec22e81031
| Author | SHA1 | Date | |
|---|---|---|---|
| ec22e81031 | |||
| aa1d57cf94 |
@@ -16,7 +16,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Restore git cache
|
- name: Restore git cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: .git
|
path: .git
|
||||||
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||||
@@ -91,24 +91,27 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore Git Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
# TODO: This is currently unused by other jobs. I couldn't make meson not regenerate things regardless of
|
|
||||||
# the build dir already existing.
|
|
||||||
- name: Build Cache Setup
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
subprojects
|
|
||||||
build
|
|
||||||
key: build-${{ gitea.repository }}-${{ gitea.sha }}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
|
|
||||||
|
- name: Cache Build + Subprojects
|
||||||
|
uses: actions/cache@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
subprojects
|
||||||
|
build
|
||||||
|
key: build-${{ gitea.repository }}-${{ gitea.sha }}
|
||||||
|
|
||||||
# FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy
|
# FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy
|
||||||
# when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going
|
# when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going
|
||||||
@@ -117,13 +120,28 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CC: "clang"
|
CC: "clang"
|
||||||
CXX: "clang++"
|
CXX: "clang++"
|
||||||
needs: [build-oci-image]
|
needs: [build-oci-image, build]
|
||||||
container:
|
container:
|
||||||
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Restore git cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Restore build cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
subprojects
|
||||||
|
build
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
||||||
@@ -136,13 +154,26 @@ jobs:
|
|||||||
CC: "clang"
|
CC: "clang"
|
||||||
CXX: "clang++"
|
CXX: "clang++"
|
||||||
FUZZER_TIMEOUT_S: 300
|
FUZZER_TIMEOUT_S: 300
|
||||||
needs: [build-oci-image]
|
needs: [build-oci-image, build]
|
||||||
container:
|
container:
|
||||||
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore Git Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Restore Build Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
subprojects
|
||||||
|
build
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
|
||||||
# FIXME: Get rid of this step when portage has fixes merged?
|
# FIXME: Get rid of this step when portage has fixes merged?
|
||||||
# needed because portage has fixes upstream we need that arent stable yet
|
# needed because portage has fixes upstream we need that arent stable yet
|
||||||
- name: Checkout tip of portage
|
- name: Checkout tip of portage
|
||||||
@@ -164,13 +195,27 @@ jobs:
|
|||||||
|
|
||||||
check-format:
|
check-format:
|
||||||
runs-on: gentoo
|
runs-on: gentoo
|
||||||
needs: [build-oci-image]
|
needs: [build-oci-image, build]
|
||||||
container:
|
container:
|
||||||
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore Git Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Restore Build Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
subprojects
|
||||||
|
build
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: |
|
run: |
|
||||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||||
@@ -179,13 +224,27 @@ jobs:
|
|||||||
|
|
||||||
docs:
|
docs:
|
||||||
runs-on: gentoo
|
runs-on: gentoo
|
||||||
needs: [build-oci-image]
|
needs: [build-oci-image, build]
|
||||||
container:
|
container:
|
||||||
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore Git Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Restore Build Cache
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
subprojects
|
||||||
|
build
|
||||||
|
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Build Documentation
|
- name: Build Documentation
|
||||||
run: |
|
run: |
|
||||||
meson setup -Ddocs=enabled docs
|
meson setup -Ddocs=enabled docs
|
||||||
|
|||||||
Reference in New Issue
Block a user