use forgejo/upload-artifact

This commit is contained in:
morguldir 2025-04-19 06:18:19 +02:00
parent 4121482770
commit 23cc6e7f12
No known key found for this signature in database
GPG key ID: 5A6025D4F6E7A8A3

View file

@ -52,7 +52,7 @@ jobs:
runs-on: [tom, dind, nix] runs-on: [tom, dind, nix]
container: container:
network: host network: host
image: catthehacker/ubuntu:js-latest image: catthehacker/ubuntu:act-latest
volumes: volumes:
- /nix/store:/nix/store - /nix/store:/nix/store
- /nix/var/nix/db:/nix/var/nix/db - /nix/var/nix/db:/nix/var/nix/db
@ -127,7 +127,7 @@ jobs:
sudo cp $(which nix) /usr/bin/nom-or-nix sudo cp $(which nix) /usr/bin/nom-or-nix
fi fi
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc" echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
nix profile install -v --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv nix profile install -v --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv nixpkgs#nodejs
direnv allow direnv allow
if type nom &> /dev/null; then if type nom &> /dev/null; then
@ -161,6 +161,7 @@ jobs:
direnv exec . engage > >(tee -a test_output.log) direnv exec . engage > >(tee -a test_output.log)
- name: Run Complement tests - name: Run Complement tests
shell: bash
env: env:
CARGO_PROFILE: "test" CARGO_PROFILE: "test"
run: | run: |
@ -374,7 +375,7 @@ jobs:
dpkg-deb --info ${{ matrix.target }}-debug.deb dpkg-deb --info ${{ matrix.target }}-debug.deb
- name: Upload static-x86_64-linux-musl-all-features-x86_64-haswell-optimised to GitHub - name: Upload static-x86_64-linux-musl-all-features-x86_64-haswell-optimised to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
if: ${{ matrix.target == 'x86_64-linux-musl' }} if: ${{ matrix.target == 'x86_64-linux-musl' }}
with: with:
name: static-x86_64-linux-musl-x86_64-haswell-optimised name: static-x86_64-linux-musl-x86_64-haswell-optimised
@ -382,14 +383,14 @@ jobs:
if-no-files-found: error if-no-files-found: error
- name: Upload static-${{ matrix.target }}-all-features to GitHub - name: Upload static-${{ matrix.target }}-all-features to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: static-${{ matrix.target }} name: static-${{ matrix.target }}
path: static-${{ matrix.target }} path: static-${{ matrix.target }}
if-no-files-found: error if-no-files-found: error
- name: Upload static deb ${{ matrix.target }}-all-features to GitHub - name: Upload static deb ${{ matrix.target }}-all-features to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: deb-${{ matrix.target }} name: deb-${{ matrix.target }}
path: ${{ matrix.target }}.deb path: ${{ matrix.target }}.deb
@ -425,14 +426,14 @@ jobs:
fi fi
- name: Upload static-${{ matrix.target }}-debug-all-features to GitHub - name: Upload static-${{ matrix.target }}-debug-all-features to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: static-${{ matrix.target }}-debug name: static-${{ matrix.target }}-debug
path: static-${{ matrix.target }}-debug path: static-${{ matrix.target }}-debug
if-no-files-found: error if-no-files-found: error
- name: Upload static deb ${{ matrix.target }}-debug-all-features to GitHub - name: Upload static deb ${{ matrix.target }}-debug-all-features to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: deb-${{ matrix.target }}-debug name: deb-${{ matrix.target }}-debug
path: ${{ matrix.target }}-debug.deb path: ${{ matrix.target }}-debug.deb
@ -472,14 +473,14 @@ jobs:
- name: Upload OCI image x86_64-linux-musl-all-features-x86_64-haswell-optimised to GitHub - name: Upload OCI image x86_64-linux-musl-all-features-x86_64-haswell-optimised to GitHub
if: ${{ matrix.target == 'x86_64-linux-musl' }} if: ${{ matrix.target == 'x86_64-linux-musl' }}
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: oci-image-x86_64-linux-musl-all-features-x86_64-haswell-optimised name: oci-image-x86_64-linux-musl-all-features-x86_64-haswell-optimised
path: oci-image-x86_64-linux-musl-all-features-x86_64-haswell-optimised.tar.gz path: oci-image-x86_64-linux-musl-all-features-x86_64-haswell-optimised.tar.gz
if-no-files-found: error if-no-files-found: error
compression-level: 0 compression-level: 0
- name: Upload OCI image ${{ matrix.target }}-all-features to GitHub - name: Upload OCI image ${{ matrix.target }}-all-features to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: oci-image-${{ matrix.target }} name: oci-image-${{ matrix.target }}
path: oci-image-${{ matrix.target }}.tar.gz path: oci-image-${{ matrix.target }}.tar.gz
@ -487,7 +488,7 @@ jobs:
compression-level: 0 compression-level: 0
- name: Upload OCI image ${{ matrix.target }}-debug-all-features to GitHub - name: Upload OCI image ${{ matrix.target }}-debug-all-features to GitHub
uses: actions/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: oci-image-${{ matrix.target }}-debug name: oci-image-${{ matrix.target }}-debug
path: oci-image-${{ matrix.target }}-debug.tar.gz path: oci-image-${{ matrix.target }}-debug.tar.gz