Compare commits
1 Commits
5019e2127f
...
feature/us
| Author | SHA1 | Date | |
|---|---|---|---|
| 1db4ecb1bb |
@@ -94,6 +94,8 @@ jobs:
|
|||||||
- 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
|
- name: Build Cache Setup
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
@@ -115,28 +117,18 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CC: "clang"
|
CC: "clang"
|
||||||
CXX: "clang++"
|
CXX: "clang++"
|
||||||
needs: [build-oci-image, build]
|
needs: [build-oci-image]
|
||||||
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: 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: build-${{ gitea.repository }}-${{ gitea.sha }}
|
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
set -x
|
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
||||||
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
ninja test -C build
|
ninja test -C build
|
||||||
set +x
|
|
||||||
|
|
||||||
fuzz:
|
fuzz:
|
||||||
runs-on: gentoo
|
runs-on: gentoo
|
||||||
@@ -144,20 +136,13 @@ jobs:
|
|||||||
CC: "clang"
|
CC: "clang"
|
||||||
CXX: "clang++"
|
CXX: "clang++"
|
||||||
FUZZER_TIMEOUT_S: 300
|
FUZZER_TIMEOUT_S: 300
|
||||||
needs: [build-oci-image, build]
|
needs: [build-oci-image]
|
||||||
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: 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: build-${{ 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
|
||||||
@@ -172,55 +157,39 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
source ./portage/.venv/bin/activate
|
source ./portage/.venv/bin/activate
|
||||||
which emerge
|
which emerge
|
||||||
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||||
meson compile atom_parser_fuzzer:alias -C build
|
meson compile atom_parser_fuzzer:alias -C build
|
||||||
timeout 10m ./scripts/atom_parser_fuzz.sh
|
timeout 10m ./scripts/atom_parser_fuzz.sh
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
check-format:
|
check-format:
|
||||||
runs-on: gentoo
|
runs-on: gentoo
|
||||||
needs: [build-oci-image, build]
|
needs: [build-oci-image]
|
||||||
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: 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: build-${{ gitea.repository }}-${{ gitea.sha }}
|
|
||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: |
|
run: |
|
||||||
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||||
meson format --check-only --recursive
|
meson format --check-only --recursive
|
||||||
ninja rustfmt -C build
|
ninja rustfmt -C build
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
runs-on: gentoo
|
runs-on: gentoo
|
||||||
needs: [build-oci-image, build]
|
needs: [build-oci-image]
|
||||||
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: 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: build-${{ gitea.repository }}-${{ gitea.sha }}
|
|
||||||
|
|
||||||
- name: Build Documentation
|
- name: Build Documentation
|
||||||
run: |
|
run: |
|
||||||
[ -d build ] || meson setup -Ddocs=enabled docs
|
meson setup -Ddocs=enabled docs
|
||||||
ninja rustdoc -C build
|
ninja rustdoc -C docs
|
||||||
|
|
||||||
grep:
|
grep:
|
||||||
runs-on: gentoo
|
runs-on: gentoo
|
||||||
|
|||||||
Reference in New Issue
Block a user