9 Commits

Author SHA1 Message Date
Michael Croes
e162c7cc70 ci: Use macos-13 for compatibility 2025-06-02 23:19:20 +02:00
Michael Croes
1d530c261c ci: Update artifact actions 2025-06-02 23:11:47 +02:00
Michael Croes
b601e80ca6 ci: Use ubuntu-latest instead of 20.04 2025-06-02 23:06:56 +02:00
Michael Croes
aeaf1d0618 ci: Skip Nuget cache on act 2025-06-02 23:06:51 +02:00
Michael Croes
b8ea8ba295 ci: Add -y to add-apt-repository 2025-06-02 23:06:44 +02:00
Michael Croes
3bd3aab38b ci: Actually specify dotnet versions in create_nuget 2025-06-02 23:06:37 +02:00
Michael Croes
8c13bdf9a9 ci: Remove shell override 2025-06-02 23:06:31 +02:00
Michael Croes
2cdeaea048 ci: Install dotnet before installing GitVersion
GitVersion relies on dotnet, this permits running on act locally.
2025-06-02 23:06:24 +02:00
Michael Croes
03c7c7e86a ci: Constrain versionSpec for GitVersion
Action is compatible with <6.1.0 only.
2025-06-02 23:06:16 +02:00

View File

@@ -19,10 +19,6 @@ env:
DOTNET_NOLOGO: true
NuGetDirectory: ${{ github.workspace}}/nuget
defaults:
run:
shell: pwsh
jobs:
create_nuget:
runs-on: ubuntu-latest
@@ -31,10 +27,17 @@ jobs:
with:
fetch-depth: 0 # Get all history to allow automatic versioning
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.x
7.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '6.x'
versionSpec: '6.0.x'
includePrerelease: true
preferLatestVersion: true
@@ -42,9 +45,6 @@ jobs:
id: gitversion
uses: gittools/actions/gitversion/execute@v0
- name: Setup .NET
uses: actions/setup-dotnet@v3
- run: >
dotnet pack
--configuration Release
@@ -54,7 +54,7 @@ jobs:
/p:PackageVersion=${{ steps.gitversion.outputs.semVer }}
--output ${{ env.NuGetDirectory }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: nuget
if-no-files-found: error
@@ -71,21 +71,21 @@ jobs:
artifacts: ${{ github.workspace }}/artifacts
strategy:
matrix:
os: [windows-latest, ubuntu-20.04, macos-latest]
os: [windows-latest, ubuntu-latest, macos-13]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Snap7 Linux
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo add-apt-repository ppa:gijzelaar/snap7
sudo add-apt-repository ppa:gijzelaar/snap7 -y
sudo apt-get update
sudo apt-get install libsnap7-1 libsnap7-dev
- name: Install Snap7 MacOs
if: ${{ matrix.os == 'macos-latest' }}
if: ${{ matrix.os == 'macos-13' }}
run: |
brew install snap7
@@ -97,6 +97,7 @@ jobs:
7.x
- name: Nuget Cache
if: ${{ !env.ACT }}
uses: actions/cache@v3
with:
path: ~/.nuget/packages
@@ -116,7 +117,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ create_nuget, run_test ]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: nuget
path: ${{ env.NuGetDirectory }}