Skip to content

Bump Imageflow.NativeRuntime.osx-x86_64 from 2.0.0-preview1 to 2.0.0-preview8 in /examples/StartHere #105

Bump Imageflow.NativeRuntime.osx-x86_64 from 2.0.0-preview1 to 2.0.0-preview8 in /examples/StartHere

Bump Imageflow.NativeRuntime.osx-x86_64 from 2.0.0-preview1 to 2.0.0-preview8 in /examples/StartHere #105

Workflow file for this run

name: Build
# lOOK INTO ADDING RELEASE DRAFTER action
on:
push:
branches:
- main
- develop
- v5
pull_request:
branches:
- main
- develop
- v5
release:
types: [ published ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-breaker1-${{ hashFiles('**/packages.lock.json') }}
- uses: nowsprinting/check-version-format-action@v3
id: version
with:
prefix: 'v'
- name: Set the release version (if applicable)
run: |
echo "TAGGED_VERSION=${{ steps.version.outputs.full_without_prefix }}" >> $GITHUB_ENV
echo Set version to ${{ steps.version.outputs.full_without_prefix }}
shell: bash
if: steps.version.outputs.is_valid == 'true' && github.event_name == 'release'
- name: Upload planned for Nuget.org?
run: echo "This runner will upload to Nuget.org if tests pass"
if: matrix.uploader && github.event_name == 'release' && steps.version.outputs.is_valid == 'true'
- name: Clear & clean on release or cache miss
run: |
dotnet clean --configuration Release
dotnet nuget locals all --clear
if: steps.cache.outputs.cache-hit != 'true' || github.event_name == 'release'
- name: Restore packages
run: dotnet restore
- name: Build Solution
run: dotnet build --maxcpucount:1 -c Release ImageResizer.sln
- name: Test Solution AnyCPU (except azure)
run: dotnet test -c Release --filter "FullyQualifiedName!~Azure" ImageResizer.sln --blame --no-build
# - name: Test Solution x86 (except azure)
# run: dotnet test -c Release --filter "FullyQualifiedName!~Azure" ImageResizer.sln --blame --no-build --arch x86
#
# - name: Test Solution x64 (except azure)
# run: dotnet test -c Release --filter "FullyQualifiedName!~Azure" ImageResizer.sln --blame --no-build --arch x64
#
- uses: actions/upload-artifact@v3
if: failure()
with:
name: TestResults-${{matrix.os}}
path: TestResults/
- name: Pack
run: dotnet pack ImageResizer.sln -c Release --include-source --output uploading
- name: Add Azure & Myget Nuget feed
run: |
dotnet nuget add source --name azureimazen "https://pkgs.dev.azure.com/imazenio/_packaging/imazenio/nuget/v3/index.json"
dotnet nuget add source --name mygetimazen "https://www.myget.org/F/imazen-nightlies/api/v2/package"
# NOT uploading .zip to github... yet
- name: Publish nuget packages to MyGet
#&& steps.version.outputs.is_stable != 'true'
if: steps.version.outputs.is_valid == 'true' && github.event_name == 'release'
run: |
dotnet nuget push uploading\*.nupkg --skip-duplicate --api-key ${{ secrets.MYGET_KEY }} --source "mygetimazen"
- name: Publish nuget packages to Nuget.org
# && steps.version.outputs.is_stable == 'true'
if: steps.version.outputs.is_valid == 'true' && github.event_name == 'release'
run: |
dotnet nuget push uploading\*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source nuget.org