From 87b42e2f551180e2d44cacc2f2987d51ce80063e Mon Sep 17 00:00:00 2001 From: NepuShiro Date: Mon, 1 Jun 2026 14:56:09 -0500 Subject: [PATCH] Remove Web, and enable releases --- .github/workflows/main.yml | 45 ++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76aaa10..cdae497 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,23 @@ jobs: ./dist ./run-test - #Release: - # name: "Snapshot Release" - # runs-on: "ubuntu-latest" - # needs: Build + 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 release + run: | + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.LIBSM64_TOKEN }}" \ + -H "Content-Type: application/json" \ + https://git.nepu.men/api/v1/repos/NepuShiro/libsm64/releases \ + -d '{ + "tag_name":"latest", + "name":"Snapshot Build", + "prerelease":true + }' \ No newline at end of file