Remove Web, and enable releases
This commit is contained in:
+19
-26
@@ -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
|
||||
- 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
|
||||
}'
|
||||
Reference in New Issue
Block a user