From c68f9ce0dc02b851fb0bd3b3b7bf8ec430485644 Mon Sep 17 00:00:00 2001 From: ohyzha Date: Fri, 18 Oct 2024 17:11:30 +0300 Subject: [PATCH 1/4] archive artifacts --- .gitea/workflows/build_pc.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build_pc.yml b/.gitea/workflows/build_pc.yml index 781fdcf..5420de4 100644 --- a/.gitea/workflows/build_pc.yml +++ b/.gitea/workflows/build_pc.yml @@ -41,8 +41,29 @@ jobs: - name: Test working-directory: ${{github.workspace}}/build run: ctest -C ${{env.BUILD_TYPE}} + - name: Archive artifacts Windows + if: matrix.os == 'windows_x64' + uses: actions/upload-artifact@v3 + with: + name: 'Artifacts' + path: | + ${{github.workspace}}/build/examples/${{env.BUILD_TYPE}} + ${{github.workspace}}/build/tests/${{env.BUILD_TYPE}} + if-no-files-found: error + retention-days: 30 + - name: Archive artifacts + if: matrix.os != 'windows_x64' + uses: actions/upload-artifact@v3 + with: + name: 'Artifacts' + path: | + ${{github.workspace}}/build/examples + ${{github.workspace}}/build/tests + if-no-files-found: error + retention-days: 30 + + - #TODO archive executables build_iOS: From ced02017b3d6ea9e8e0dd957333ca76a6861dea5 Mon Sep 17 00:00:00 2001 From: ohyzha Date: Fri, 18 Oct 2024 17:40:29 +0300 Subject: [PATCH 2/4] update artifact names --- .gitea/workflows/build_pc.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_pc.yml b/.gitea/workflows/build_pc.yml index 5420de4..6d9aca8 100644 --- a/.gitea/workflows/build_pc.yml +++ b/.gitea/workflows/build_pc.yml @@ -45,22 +45,24 @@ jobs: if: matrix.os == 'windows_x64' uses: actions/upload-artifact@v3 with: - name: 'Artifacts' + name: 'Artifacts-windows' path: | ${{github.workspace}}/build/examples/${{env.BUILD_TYPE}} ${{github.workspace}}/build/tests/${{env.BUILD_TYPE}} if-no-files-found: error retention-days: 30 + overwrite: true - name: Archive artifacts if: matrix.os != 'windows_x64' uses: actions/upload-artifact@v3 with: - name: 'Artifacts' + name: 'Artifacts-${{matrix.os}}' path: | ${{github.workspace}}/build/examples ${{github.workspace}}/build/tests if-no-files-found: error retention-days: 30 + overwrite: true From 9184c9aa549c3da32065af40df08dfc9baf96c1a Mon Sep 17 00:00:00 2001 From: ohyzha Date: Fri, 18 Oct 2024 18:06:47 +0300 Subject: [PATCH 3/4] exclude garbage cmake files in artifacts --- .gitea/workflows/build_pc.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/build_pc.yml b/.gitea/workflows/build_pc.yml index 6d9aca8..546ffa2 100644 --- a/.gitea/workflows/build_pc.yml +++ b/.gitea/workflows/build_pc.yml @@ -60,6 +60,10 @@ jobs: path: | ${{github.workspace}}/build/examples ${{github.workspace}}/build/tests + !{{github.workspace}}/build/**/CMakeFiles + !{{github.workspace}}/build/**/*.cmake + !{{github.workspace}}/build/**/Makefile + if-no-files-found: error retention-days: 30 overwrite: true From bc7fae4f34aa385739dbafefa7bba933ee240df9 Mon Sep 17 00:00:00 2001 From: ohyzha Date: Fri, 18 Oct 2024 18:16:00 +0300 Subject: [PATCH 4/4] missing dereferencing symbol --- .gitea/workflows/build_pc.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build_pc.yml b/.gitea/workflows/build_pc.yml index 546ffa2..fb286c3 100644 --- a/.gitea/workflows/build_pc.yml +++ b/.gitea/workflows/build_pc.yml @@ -60,10 +60,9 @@ jobs: path: | ${{github.workspace}}/build/examples ${{github.workspace}}/build/tests - !{{github.workspace}}/build/**/CMakeFiles - !{{github.workspace}}/build/**/*.cmake - !{{github.workspace}}/build/**/Makefile - + !${{github.workspace}}/build/**/CMakeFiles + !${{github.workspace}}/build/**/*.cmake + !${{github.workspace}}/build/**/Makefile if-no-files-found: error retention-days: 30 overwrite: true