Skip to content

Commit

Permalink
fix: updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sargeantPig committed Jan 2, 2024
1 parent 89cb231 commit 6f69451
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/linux-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ on:
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:

build-linux:
runs-on: ubuntu-latest

env:
Solution_Name: '${{github.workspace}}/RTWLib_CLI/RTWLib_Solution.sln' # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: '${{github.workspace}}/RTWLib_Tests/RTWLib_Tests.csproj'

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install .NET Core Runtime
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'

- name: Create Output Directory
run: mkdir -p '${{github.workspace}}/RTWLib_Tests/bin/Debug/netcoreapp7.0/resources'

- name: Copy Resources
run: cp -r ./RTWLib_Tests/resources/. ${{ github.workspace }}/RTWLib_Tests/bin/Debug/netcoreapp7.0/resources/

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Install .NET Core Runtime
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'

- name: Create Output Directory
run: mkdir -p '${{github.workspace}}/RTWLib_Tests/bin/Debug/netcoreapp7.0/resources'

- name: Copy Resources
run: cp -r ./RTWLib_Tests/resources/. ${{ github.workspace }}/RTWLib_Tests/bin/Debug/netcoreapp7.0/resources/

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/windows-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:

build-windows:
Expand All @@ -20,7 +20,7 @@ jobs:
env:
Solution_Name: '\RTWLIB_CLI\RTWLIB_CLI.sln' # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: './RTWLib_Tests/RTWLib_Tests.csproj' # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -31,21 +31,21 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2

- name: Copy Resources
run: cp -r ./RTWLib_Tests/resources ./RTWLib_Tests/bin/Debug/netcoreapp7.0/resources

- name: Log files
run: ls ./RTWLib_Tests/bin/Debug/netcoreapp7.0/

- name: Restore packages
run: dotnet restore ./RTWLib_CLI/RTWLib_CLI.csproj

- name: Build with dotnet
run: dotnet build ./RTWLib_CLI/RTWLib_CLI.csproj --configuration Release --no-restore

Expand Down

0 comments on commit 6f69451

Please sign in to comment.