Remove Web, and enable releases
Build libsm64 / Build libsm64 for linux (push) Successful in 30s
Build libsm64 / Build libsm64 for windows (push) Successful in 24s
Build libsm64 / Release (push) Successful in 1s

This commit is contained in:
2026-06-01 14:56:09 -05:00
parent 42132a5646
commit 87b42e2f55
+19 -26
View File
@@ -13,8 +13,6 @@ jobs:
os: ubuntu-latest os: ubuntu-latest
- identifier: windows - identifier: windows
os: ubuntu-latest os: ubuntu-latest
- identifier: web
os: ubuntu-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout project - name: Checkout project
@@ -46,16 +44,10 @@ jobs:
sudo apt-get update -y -qq sudo apt-get update -y -qq
sudo apt-get install -y libsdl2-dev libglew-dev 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 - name: Build shared library
shell: bash shell: bash
run: | run: |
if [[ "${{ matrix.identifier }}" == "web" ]]; then if [[ "${{ matrix.identifier }}" == "windows" ]]; then
emmake make lib -j $(nproc) CC=emcc
elif [[ "${{ matrix.identifier }}" == "windows" ]]; then
make lib -j $(nproc 2>/dev/null || sysctl -n hw.ncpu) \ make lib -j $(nproc 2>/dev/null || sysctl -n hw.ncpu) \
CC=x86_64-w64-mingw32-gcc \ CC=x86_64-w64-mingw32-gcc \
CXX=x86_64-w64-mingw32-g++ CXX=x86_64-w64-mingw32-g++
@@ -77,22 +69,23 @@ jobs:
./dist ./dist
./run-test ./run-test
#Release: Release:
# name: "Snapshot Release" runs-on: ubuntu-latest
# runs-on: "ubuntu-latest" needs: Build
# needs: Build
# steps: steps:
# - name: Download artifacts - name: Download artifacts
# uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
# - name: Create a Release - name: Create release
# uses: "marvinpinto/action-automatic-releases@latest" run: |
# with: curl \
# repo_token: "${{ secrets.GITHUB_TOKEN }}" -X POST \
# automatic_release_tag: "latest" -H "Authorization: token ${{ secrets.LIBSM64_TOKEN }}" \
# prerelease: true -H "Content-Type: application/json" \
# title: "Snapshot Build" https://git.nepu.men/api/v1/repos/NepuShiro/libsm64/releases \
# files: | -d '{
# ./README.md "tag_name":"latest",
# ./dist "name":"Snapshot Build",
"prerelease":true
}'