Skip to content

Add GitHub Actions workflow for NuGet release #11

Add GitHub Actions workflow for NuGet release

Add GitHub Actions workflow for NuGet release #11

Workflow file for this run

name: NuGet Release
on: [push, workflow_dispatch]
concurrency:
group: nuget-${{github.ref}}
cancel-in-progress: true
jobs:
windows:
name: Windows VS2022
runs-on: windows-2022
steps:
- name: Checkout CSFML
uses: actions/checkout@v3
with:
path: CSFML
- name: Build x86
shell: pwsh
run: |
cd CSFML/tools/nuget
./build.win.ps1 "win-x86"
- name: Build x64
shell: pwsh
run: |
cd CSFML/tools/nuget
./build.win.ps1 "win-x64"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: CSFML-Windows
path: CSFML/tools/nuget/CSFML
linux:
name: Linux x64
runs-on: ubuntu-22.04
container:
image: ubuntu:22.04
options: --user root
steps:
- name: Checkout CSFML
uses: actions/checkout@v3
with:
path: CSFML
- name: Build
shell: bash
run: |
cd CSFML/tools/nuget
./docker.linux-x64.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: CSFML-Linux
path: CSFML/tools/nuget/CSFML