diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..92b31a20 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,115 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + build: + name: ${{ matrix.name }} + runs-on: ${{ matrix.os }} + defaults: + run: + shell: ${{ matrix.shell || 'sh' }} + + strategy: + fail-fast: false + matrix: + include: + - { name: 'Linux', os: 'ubuntu-latest', dx5: false, config: true, build-type: 'Release', linux: true, werror: true, clang-tidy: false } + - { name: 'Windows', os: 'windows-latest', dx5: false, config: false, build-type: 'Release', msvc: true, werror: false, clang-tidy: false, vc-arch: 'amd64' } + - { name: 'macOS', os: 'macos-latest', dx5: false, config: true, build-type: 'Release', brew: true, werror: true, clang-tidy: false } + steps: + - name: Setup vcvars + if: ${{ !!matrix.msvc }} + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.vc-arch }} + + - name: Set up MSYS2 + if: ${{ !!matrix.msystem }} + uses: msys2/setup-msys2@v2 + with: + msystem: ${{ matrix.msystem }} + install: >- + ${{ matrix.msys-env }}-cc + ${{ matrix.msys-env }}-cmake + ${{ matrix.msys-env }}-ninja + ${{ matrix.msys-env }}-clang-tools-extra + ${{ (matrix.config && format('{0}-qt6-base', matrix.msys-env)) || '' }} + + - name: Install Linux dependencies (apt-get) + if: ${{ matrix.linux }} + run: | + sudo apt-get update + sudo apt-get install -y \ + libx11-dev libxext-dev libxrandr-dev libxrender-dev libxfixes-dev libxi-dev libxinerama-dev \ + libxcursor-dev libwayland-dev libxkbcommon-dev wayland-protocols libgl1-mesa-dev libglew-dev qt6-base-dev + + - name: Install macOS dependencies (brew) + if: ${{ matrix.brew }} + run: | + brew update + brew install cmake ninja llvm qt6 + echo "LLVM_ROOT=$(brew --prefix llvm)/bin" >> $GITHUB_ENV + + - name: Setup Emscripten + uses: mymindstorm/setup-emsdk@master + if: ${{ matrix.emsdk }} + + - name: Setup ninja + if: ${{ matrix.msvc }} + uses: ashutoshvarma/setup-ninja@master + + - uses: actions/checkout@v4 + + - name: Configure (CMake) + run: | + ${{ matrix.cmake-wrapper || '' }} cmake -S . -B build -GNinja \ + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \ + -DISLE_USE_DX5=${{ !!matrix.dx5 }} \ + -DISLE_BUILD_CONFIG=${{ matrix.config }} \ + -DENABLE_CLANG_TIDY=${{ !!matrix.clang-tidy }} \ + -DISLE_WERROR=${{ !!matrix.werror }} \ + -DISLE_DEBUG=OFF \ + -Werror=dev + + - name: Build (CMake) + run: cmake --build build --verbose + + - name: Package (CPack) + run: | + cd build + cpack . + + - name: Upload Artifact + uses: actions/upload-artifact@main + with: + name: Release-${{ matrix.name }} + path: | + build/dist/isle-* + + release: + name: 'Release' + runs-on: ubuntu-latest + needs: build + steps: + - name: Download All Artifacts + uses: actions/download-artifact@main + with: + pattern: Release-* + path: Release + merge-multiple: true + + - name: Checkout uploadtool + uses: actions/checkout@v4 + with: + repository: 'probonopd/uploadtool' + path: 'uploadtool' + + - name: Upload Continuous Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + ./uploadtool/upload.sh Release/* diff --git a/README.md b/README.md index fa1a8f4a..40c2656b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [Development Vlog](https://www.youtube.com/playlist?list=PLbpl-gZkNl2Db4xcAsT_xOfOwRk-2DPHL) | [Contributing](/CONTRIBUTING.md) | [Matrix](https://matrix.to/#/#isledecomp:matrix.org) | [Forums](https://forum.mattkc.com/viewforum.php?f=1) | [Patreon](https://www.patreon.com/mattkc) -This initiative is a **work-in-progress** portable version of LEGO Island (Version 1.1, English) based on the [decompilation project](https://github.com/isledecomp/isle). Our primary goal is to transform the codebase to achieve platform independence, thereby enhancing compatibility across various systems while preserving the original game's experience as faithfully as possible. +This initiative is a portable version of LEGO Island (Version 1.1, English) based on the [decompilation project](https://github.com/isledecomp/isle). Our primary goal is to transform the codebase to achieve platform independence, thereby enhancing compatibility across various systems while preserving the original game's experience as faithfully as possible. Please note: this project is dedicated to achieving platform independence without altering the core gameplay, adding new features, enhancing visual quality, or rewriting code for improvement's sake. While those are worthwhile objectives, they are not within the scope of this project. @@ -40,12 +40,6 @@ To achieve our goal of platform independence, we need to replace any Windows-onl This project uses the [CMake](https://cmake.org/) build system, which allows for a high degree of versatility regarding compilers and development environments. Please refer to the [GitHub action](/.github/workflows//build.yml) for guidance. -## Usage - -As it stands, this project is currently not ready to be played by end users. The nature of the porting process can leave the game unstable or even completely unplayable at times while the migration of game and engine code to modern APIs continues. For this reason, there is currently no support for running any executables produced by this project outside of a development environment, and no guarantees of playability or stability are provided. - -If you are a developer who feels like you can assist with porting efforts; especially if you have experience working with standard 3D libraries, please check Contributing and get in contact with our team on Matrix for help with setup. - ## Contributing If you're interested in helping or contributing to this project, check out the [CONTRIBUTING](/CONTRIBUTING.md) page.