diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml deleted file mode 100644 index 037678e5..00000000 --- a/.github/workflows/dotnet.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: .NET - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: self-hosted - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 5.0.101 - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal -p:ParallelizeTestCollections=false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..c1b92c08 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Create Release +on: + workflow_dispatch: + inputs: + version: + description: 'Release Version' + required: true + +jobs: + build: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.101 + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Publish App + run: dotnet publish Wabbajack\Wabbajack.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o c:\tmp\PublishApp --self-contained + - name: Publish Launcher + run: dotnet publish Wabbajack.Launcher\Wabbajack.Launcher.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o c:\tmp\PublishLauncher --self-contained diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..9d07494c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,35 @@ +name: .NET + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.101 + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore --configuration Release /p:Platform=x64 + - name: Test Wabbajack.Common.Test + run: dotnet test --verbosity normal --configuration Release /p:Platform=x64 Wabbajack.Common.Test + - name: Test Compression.BSA.Test + run: dotnet test --verbosity normal --configuration Release /p:Platform=x64 Compression.BSA.Test + - name: Test Wabbajack.VirtualFileSystem.Test + run: dotnet test --verbosity normal --configuration Release /p:Platform=x64 Wabbajack.VirtualFileSystem.Test + - name: Test Wabbajack.Test + run: dotnet test --verbosity normal --configuration Release /p:Platform=x64 Wabbajack.Test + - name: Test Wabbajack.App.Test + run: dotnet test --verbosity normal --configuration Release /p:Platform=x64 Wabbajack.App.Test + - name: Test Wabbajack.Server.Test + run: dotnet test --verbosity normal --configuration Release /p:Platform=x64 Wabbajack.Server.Test