diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 8825eda..51a1c35 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -65,6 +65,9 @@ jobs: build: runs-on: brutalisk + environment: + CC: 'clang' + CXX: 'clang++' needs: build-oci-image container: image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} @@ -74,13 +77,16 @@ jobs: - name: build and check run: | - meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build + LDFLAGS="-fuse-ld=$(command -v lld)" meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build meson compile -C build # 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 test: runs-on: brutalisk + environment: + CC: 'clang' + CXX: 'clang++' needs: [build-oci-image, build] container: image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} @@ -104,7 +110,6 @@ jobs: uses: actions/checkout@v5 - name: Check Formatting - run: | meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build ninja rustfmt -C build