diff --git a/.github/workflows/build-cmake-conan.yml b/.github/workflows/build-cmake-conan.yml deleted file mode 100644 index e5e80791..00000000 --- a/.github/workflows/build-cmake-conan.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: reVC conan+cmake -on: - pull_request: - push: - release: - types: published -jobs: - build-cmake: - strategy: - matrix: - include: - - os: 'windows-latest' - platform: 'gl3' - gl3_gfxlib: 'glfw' - audio: 'openal' -# - os: 'windows-latest' -# platform: 'gl3' -# gl3_gfxlib: 'sdl2' -# audio: 'openal' - - os: 'windows-latest' - platform: 'd3d9' - audio: 'openal' -# - os: 'windows-latest' -# platform: 'd3d9' -# audio: 'miles' - - os: 'ubuntu-18.04' - platform: 'gl3' - gl3_gfxlib: 'glfw' - audio: 'openal' -# - os: 'ubuntu-18.04' -# platform: 'gl3' -# gl3_gfxlib: 'sdl2' -# audio: 'openal' - - os: 'macos-latest' - platform: 'gl3' - gl3_gfxlib: 'glfw' - audio: 'openal' -# - os: 'macos-latest' -# platform: 'gl3' -# gl3_gfxlib: 'sdl2' -# audio: 'openal' - runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.platform == 'ps2' || matrix.gl3_gfxlib == 'sdl2' || matrix.audio == 'miles' }} - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: "Checkout Miles SDK Import Library project" - uses: actions/checkout@v2 - if: ${{ matrix.audio == 'miles' }} - with: - repository: 'withmorten/re3mss' - path: 're3mss' - - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: "Use XCode 11 as default (conan-center-index does not provide XCode 12 binaries at the moment)" - if: startsWith(matrix.os, 'macos') - run: | - sudo xcode-select --switch /Applications/Xcode_11.7.app - - name: "Setup conan" - run: | - python -m pip install conan - conan config init - conan config set log.print_run_commands=True - conan config set general.revisions_enabled=1 - conan remote add bincrafters https://bincrafters.jfrog.io/artifactory/api/conan/public-conan -# conan remote add madebr_ps2dev https://api.bintray.com/conan/madebr/ps2dev - - name: "Add os=playstation2 + gcc.version=3.2 to .conan/settings.yml" - shell: python - run: | - import os, yaml - settings_path = os.path.expanduser("~/.conan/settings.yml") - yml = yaml.safe_load(open(settings_path)) - yml["os"]["playstation2"] = None - yml["compiler"]["gcc"]["version"].append("3.2") - yml["compiler"]["gcc"]["version"].sort() - yaml.safe_dump(yml, open(settings_path, "w")) - - name: "Create host profile" - shell: bash - run: | - if test "${{ matrix.platform }}" = "ps2"; then - cp vendor/librw/conan/playstation2 host_profile - else - cp ~/.conan/profiles/default host_profile - fi - - name: "Export Playstation 2 CMake toolchain conan recipe" - run: | - conan export vendor/librw/cmake/ps2/cmaketoolchain ps2dev-cmaketoolchain/master@ - - name: "Export librw conan recipe" - run: | - conan export vendor/librw librw/master@ - - name: "Export Miles SDK conan recipe" - if: ${{ matrix.audio == 'miles' }} - run: | - conan export re3mss miles-sdk/master@ - - name: "Download/build dependencies (conan install)" - run: | - conan install ${{ github.workspace }} reVC/master@ -if build -o reVC:audio=${{ matrix.audio }} -o librw:platform=${{ matrix.platform }} -o librw:gl3_gfxlib=${{ matrix.gl3_gfxlib || 'glfw' }} --build missing -pr:h ./host_profile -pr:b default -s reVC:build_type=RelWithDebInfo -s librw:build_type=RelWithDebInfo - env: - CONAN_SYSREQUIRES_MODE: enabled - - name: "Build reVC (conan build)" - run: | - conan build ${{ github.workspace }} -if build -bf build -pf package - - name: "Package reVC (conan package)" - run: | - conan package ${{ github.workspace }} -if build -bf build -pf package - - name: "Create binary package (cpack)" - working-directory: ./build - run: | - cpack -C RelWithDebInfo - - name: "Archive binary package (github artifacts)" - uses: actions/upload-artifact@v2 - with: - name: "${{ matrix.os }}-${{ matrix.platform }}" - path: build/*.tar.xz - if-no-files-found: error diff --git a/.github/workflows/build-switch.yml b/.github/workflows/build-switch.yml deleted file mode 100644 index c0cdcab0..00000000 --- a/.github/workflows/build-switch.yml +++ /dev/null @@ -1,29 +0,0 @@ - -name: reVC cmake devkitA64 (Nintendo Switch) -on: - pull_request: - push: - release: - types: published -jobs: - build-nintendo-switch: - runs-on: ubuntu-latest - container: devkitpro/devkita64:latest - steps: - - uses: actions/checkout@v2 - with: - submodules: 'true' - - name: "Build files" - run: | - /opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S. -Bbuild -DREVC_AUDIO=OAL -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW -DREVC_WITH_OPUS=False -DREVC_VENDORED_LIBRW=True -DREVC_INSTALL=True - cmake --build build --parallel - - name: "Create binary package (cpack)" - working-directory: ./build - run: | - cpack - - name: "Archive binary package (github artifacts)" - uses: actions/upload-artifact@v2 - with: - name: "switch-gl3" - path: build/*.tar.xz - if-no-files-found: error diff --git a/.github/workflows/reVC_msvc_amd64.yml b/.github/workflows/reVC_msvc_amd64.yml deleted file mode 100644 index a00c5d2c..00000000 --- a/.github/workflows/reVC_msvc_amd64.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: reVC premake amd64 - -on: - pull_request: - push: - release: - types: published -env: - GLFW_VER: "3.3.2" - GLFW_BASE: "glfw-3.3.2.bin.WIN64" - GLFW_FILE: "glfw-3.3.2.bin.WIN64.zip" - GLFW_URL: "https://github.com/glfw/glfw/releases/download/3.3.2/glfw-3.3.2.bin.WIN64.zip" -jobs: - build: - runs-on: windows-2019 - strategy: - matrix: - platform: [win-amd64-librw_d3d9-oal, win-amd64-librw_gl3_glfw-oal] - buildtype: [Debug, Release] - steps: - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 - - uses: actions/checkout@v2 - with: - submodules: 'true' - - if: ${{ matrix.platform }} == "win-amd64-librw_gl3_glfw-mss" - name: Download glfw - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: ${{env.GLFW_URL}} - - if: ${{ matrix.platform }} == "win-amd64-librw_gl3_glfw-mss" - name: Unpack archives - run: | - 7z x ${{env.GLFW_FILE}} - - name: Configure build - run: | - ./premake5 vs2019 --with-librw --no-full-paths --glfwdir64=${{env.GLFW_BASE}} - - name: Build - run: | - msbuild -m build/reVC.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}} - # - name: Pack artifacts - # run: | - # 7z a reVC_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/* - - name: Move binaries to gamefiles - run: | - mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.exe ./gamefiles/ - mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.pdb ./gamefiles/ - - name: Move dynamic dependencies to gamefiles - run: | - mv ./vendor/mpg123/dist/Win64/libmpg123-0.dll ./gamefiles/ - mv ./vendor/openal-soft/dist/Win64/OpenAL32.dll ./gamefiles/ - - name: Upload artifact to actions - uses: actions/upload-artifact@v2 - with: - name: reVC_${{matrix.buildtype}}_${{matrix.platform}} - path: ./gamefiles/* -# - name: Upload artifact to Bintray -# uses: hpcsc/upload-bintray-docker-action@v1 -# with: -# repository: reVC -# package: ${{matrix.buildtype}}_${{matrix.platform}} -# version: 1.0-$(echo ${GITHUB_SHA} -# sourcePath: ./bin/${{matrix.platform}}/${{matrix.buildtype}} -# username: gtamodding -# apiKey: ${{secrets.BINTRAY_API_KEY}} diff --git a/.github/workflows/reVC_msvc_x86.yml b/.github/workflows/reVC_msvc_x86.yml deleted file mode 100644 index 1407aeae..00000000 --- a/.github/workflows/reVC_msvc_x86.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: reVC premake x86 - -on: - pull_request: - push: - release: - types: published -env: - GLFW_VER: "3.3.2" - GLFW_BASE: "glfw-3.3.2.bin.WIN32" - GLFW_FILE: "glfw-3.3.2.bin.WIN32.zip" - GLFW_URL: "https://github.com/glfw/glfw/releases/download/3.3.2/glfw-3.3.2.bin.WIN32.zip" -jobs: - build: - runs-on: windows-2019 - strategy: - matrix: - platform: [win-x86-librw_d3d9-mss, win-x86-librw_gl3_glfw-mss, win-x86-librw_d3d9-oal, win-x86-librw_gl3_glfw-oal] - buildtype: [Debug, Release, Vanilla] - steps: - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 - - uses: actions/checkout@v2 - with: - submodules: 'true' - - if: ${{ matrix.platform }} == "win-x86-librw_gl3_glfw-mss" - name: Download glfw - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: ${{env.GLFW_URL}} - - if: ${{ matrix.platform }} == "win-x86-librw_gl3_glfw-mss" - name: Unpack archives - run: | - 7z x ${{env.GLFW_FILE}} - - name: Configure build - run: | - ./premake5 vs2019 --with-librw --no-full-paths --glfwdir32=${{env.GLFW_BASE}} - - name: Build - run: | - msbuild -m build/reVC.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}} - # - name: Pack artifacts - # run: | - # 7z a reVC_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/* - - name: Move binaries to gamefiles - run: | - mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.exe ./gamefiles/ - mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.pdb ./gamefiles/ - - if: contains(matrix.platform, 'oal') - name: Move dynamic dependencies to gamefiles - run: | - mv ./vendor/mpg123/dist/Win32/libmpg123-0.dll ./gamefiles/ - mv ./vendor/openal-soft/dist/Win32/OpenAL32.dll ./gamefiles/ - - name: Upload artifact to actions - uses: actions/upload-artifact@v2 - with: - name: reVC_${{matrix.buildtype}}_${{matrix.platform}} - path: ./gamefiles/* -# - name: Upload artifact to Bintray -# uses: hpcsc/upload-bintray-docker-action@v1 -# with: -# repository: reVC -# package: ${{matrix.buildtype}}_${{matrix.platform}} -# version: 1.0-$(echo ${GITHUB_SHA} -# sourcePath: ./bin/${{matrix.platform}}/${{matrix.buildtype}} -# username: gtamodding -# apiKey: ${{secrets.BINTRAY_API_KEY}} -