diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1325b2b..b2614a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: build-native on: - push: +# push: workflow_dispatch: inputs: {} # schedule: @@ -16,9 +16,9 @@ jobs: fail-fast: false matrix: platform: - - { name: win-x64, os: windows-latest, flags: -A x64 } - - { name: win-x86, os: windows-latest, flags: -A Win32 } - - { name: win-arm64, os: windows-latest, flags: -A ARM64 } + - { name: win-x64, os: windows-latest, flags: -A x64 -DHAVE_DINPUT_H=0 } + - { name: win-x86, os: windows-latest, flags: -A Win32 -DHAVE_DINPUT_H=0 } + - { name: win-arm64, os: windows-latest, flags: -A ARM64 -DHAVE_DINPUT_H=0 } - { name: linux-x64, os: ubuntu-18.04, flags: -GNinja , target_apt_arch: ":amd64" } - { name: linux-x86, os: ubuntu-18.04, flags: -GNinja, cmake_configure_env: CFLAGS=-m32 CXXFLAGS=-m32, target_apt_arch: ":i386" } - { name: osx-x64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" } @@ -68,7 +68,7 @@ jobs: g++-multilib - uses: actions/checkout@v2 with: - repository: ppy/SDL + repository: libsdl-org/SDL - uses: actions/checkout@v2 with: path: 'SDL2-CS' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ab130af --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - uses: nuget/setup-nuget@v1 + with: + nuget-api-key: ${{ secrets.NUGET_API_KEY }} + nuget-version: '5.x' + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Pack & Publish + run: | + dotnet pack --version-suffix "build${{ github.run_number }}" -c Release .\SDL2-CS.csproj -o . + $file_to_publish = Get-ChildItem -Path $dir -Filter *.nupkg | Select -First 1 + echo $file_to_publish + nuget push $file_to_publish -Source https://api.nuget.org/v3/index.json diff --git a/SDL2-CS.csproj b/SDL2-CS.csproj index fa342b4..2df8a1d 100644 --- a/SDL2-CS.csproj +++ b/SDL2-CS.csproj @@ -8,13 +8,14 @@ libSDL2 bindings for C# SDL2 false + 2.0.15 - ppy Pty Ltd & flibitijibibo + Thog & ppy Pty Ltd & flibitijibibo SDL2# - ppy.SDL2-CS - https://github.com/ppy/SDL2-CS - https://github.com/ppy/SDL2-CS + Ryujinx.SDL2-CS + https://github.com/Ryujinx/SDL2-CS + https://github.com/Ryujinx/SDL2-CS @@ -27,11 +28,21 @@ runtimes/win-x86/native true + + PreserveNewest + runtimes/win-arm64/native + true + PreserveNewest runtimes/osx-x64/native true + + PreserveNewest + runtimes/osx-arm64/native + true + PreserveNewest runtimes/linux-x64/native