diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76aaa10..7e14938 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,8 +13,6 @@ jobs: os: ubuntu-latest - identifier: windows os: ubuntu-latest - - identifier: web - os: ubuntu-latest runs-on: ${{ matrix.os }} steps: - name: Checkout project @@ -46,16 +44,10 @@ jobs: sudo apt-get update -y -qq sudo apt-get install -y libsdl2-dev libglew-dev - - name: (Web) Set up Emscripten - if: ${{ startsWith(matrix.identifier, 'web') }} - uses: mymindstorm/setup-emsdk@v14 - - name: Build shared library shell: bash run: | - if [[ "${{ matrix.identifier }}" == "web" ]]; then - emmake make lib -j $(nproc) CC=emcc - elif [[ "${{ matrix.identifier }}" == "windows" ]]; then + if [[ "${{ matrix.identifier }}" == "windows" ]]; then make lib -j $(nproc 2>/dev/null || sysctl -n hw.ncpu) \ CC=x86_64-w64-mingw32-gcc \ CXX=x86_64-w64-mingw32-g++ @@ -77,22 +69,22 @@ jobs: ./dist ./run-test - #Release: - # name: "Snapshot Release" - # runs-on: "ubuntu-latest" - # needs: Build + Release: + name: "Snapshot Release" + runs-on: "ubuntu-latest" + needs: Build - # steps: - # - name: Download artifacts - # uses: actions/download-artifact@v3 + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 - # - name: Create a Release - # uses: "marvinpinto/action-automatic-releases@latest" - # with: - # repo_token: "${{ secrets.GITHUB_TOKEN }}" - # automatic_release_tag: "latest" - # prerelease: true - # title: "Snapshot Build" - # files: | - # ./README.md - # ./dist \ No newline at end of file + - name: Create a Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Snapshot Build" + files: | + ./README.md + ./dist \ No newline at end of file