diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 16a262943..201b88a3c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -52,17 +52,13 @@ jobs: run: cmake --build . --config ${{ matrix.configuration }} -j $env:NUMBER_OF_PROCESSORS - name: Prepare artifacts if: matrix.configuration == 'Release' - run: | - robocopy . artifacts COPYING README.md /r:0 /w:0 - robocopy build\bin\${{ matrix.configuration }} artifacts ` - cxbx.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll ` - cxbxr-debugger.exe capstone.dll cs_x86.dll /r:0 /w:0 - If ($LastExitCode -le 7) { $LastExitCode = 0 } - - uses: actions/upload-artifact@v1 + working-directory: build + run: cmake --install . --config ${{ matrix.configuration }} --prefix ../artifacts + - uses: actions/upload-artifact@v2 if: matrix.configuration == 'Release' with: name: CxbxReloaded-${{ matrix.configuration }}-${{ matrix.vsver }} - path: artifacts + path: artifacts/bin/** release: if: |