From 14855193022a51f207ac8ab2c2bcc33e684510f5 Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Sat, 21 Sep 2024 04:32:16 -0300 Subject: [PATCH] workflows: use configuration for artifact upload Access the build directory programmatically via the configuration name set in the environment of the current workflow in the matrix. No wildcards necessary. Also prepend the name of the current configuration to the name of the uploaded artifact. This enables the upload of all artifacts generated by the entire build matrix since they'll all have different names. Apparently there's no way to use the CONFIGURATION environment variable from the matrix in this context, leading to incredibly annoying repetition of the logic that makes up the configuration name. Can't be helped. --- .github/workflows/lone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lone.yml b/.github/workflows/lone.yml index af03cee..e164729 100644 --- a/.github/workflows/lone.yml +++ b/.github/workflows/lone.yml @@ -74,8 +74,8 @@ jobs: - name: Upload lone executable artifact uses: actions/upload-artifact@v4 with: - name: lone - path: build/*/lone + name: ${{ matrix.compiler.name }}-${{ matrix.linker.name }}-lone + path: build/${{ matrix.compiler.name }}-${{ matrix.linker.name }}/lone compression-level: 9 overwrite: false