1919 BUILD_SOURCEBRANCHNAME : ${{ github.ref_name }}
2020 BUILD_SOURCEVERSION : ${{ github.sha }}
2121 BUILD_ARTIFACTSTAGINGDIRECTORY : ${{ github.workspace }}/artifacts/
22+ BUILD_BUILDDIRECTORY : ${{ github.workspace }}/rpcs3_build/
2223
2324jobs :
2425 Linux_Build :
@@ -52,11 +53,13 @@ jobs:
5253 DEPLOY_APPIMAGE : true
5354 APPDIR : " /rpcs3/build/appdir"
5455 ARTDIR : " /root/artifacts"
56+ BUILDDIR : " /root/rpcs3_build"
5557 RELEASE_MESSAGE : " /rpcs3/GitHubReleaseMessage.txt"
5658 COMPILER : ${{ matrix.compiler }}
5759 UPLOAD_COMMIT_HASH : ${{ matrix.UPLOAD_COMMIT_HASH }}
5860 UPLOAD_REPO_FULL_NAME : ${{ matrix.UPLOAD_REPO_FULL_NAME }}
59- RUN_UNIT_TESTS : github.event_name == 'pull_request' && 'ON' || 'OFF'
61+ BUILD_UNIT_TESTS : github.event_name == 'pull_request' && 'ON' || 'OFF'
62+ RUN_UNIT_TESTS : ' OFF'
6063 steps :
6164 - name : Checkout repository
6265 uses : actions/checkout@main
@@ -79,15 +82,26 @@ jobs:
7982 --env-file .ci/docker.env \
8083 -v ${{ env.CCACHE_DIR }}:/root/.ccache \
8184 -v ${{ env.BUILD_ARTIFACTSTAGINGDIRECTORY }}:${{ env.ARTDIR }} \
85+ -v ${{ env.BUILD_BUILDDIRECTORY }}:${{ env.BUILDDIR }} \
8286 ${{ matrix.docker_img }} \
8387 ${{ matrix.build_sh }}
8488
85- - name : Upload artifacts
86- uses : actions/upload-artifact@main
87- with :
88- name : RPCS3 for Linux (${{ runner.arch }}, ${{ matrix.compiler }})
89- path : ${{ env.BUILD_ARTIFACTSTAGINGDIRECTORY }}/*.AppImage
90- compression-level : 0
89+ - name : Unit tests
90+ if : github.event_name == 'pull_request'
91+ working-directory : ${{ github.workspace }}
92+ run : |
93+ ls -la -F
94+ ls -la -F rpcs3
95+ mkdir -p my_symlinks
96+ ln -s ${{ env.BUILDDIR }} my_symlinks/build
97+ ctest -j -VV -C Release --test-dir my_symlinks/build --output-on-failure
98+
99+ # - name: Upload artifacts
100+ # uses: actions/upload-artifact@main
101+ # with:
102+ # name: RPCS3 for Linux (${{ runner.arch }}, ${{ matrix.compiler }})
103+ # path: ${{ env.BUILD_ARTIFACTSTAGINGDIRECTORY }}/*.AppImage
104+ # compression-level: 0
91105
92106 - name : Deploy master build to GitHub Releases
93107 if : |
0 commit comments