diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 4013532..d2af510 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -87,7 +87,7 @@ jobs: run: cargo machete - name: Deny run: cargo deny check all - PublishJob: + PublishCrateJob: strategy: matrix: crate: ["nuspec"] @@ -98,8 +98,26 @@ jobs: run: | cargo publish --all-features --package ${{ matrix.crate }} --dry-run --verbose cargo package --all-features --list --allow-dirty + PublishNugetJob: + strategy: + matrix: + crate: [ "nuspec-test" ] + os: [ windows-latest" ] # windows only for now, as nuget behaves differently on linux + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4.2.2 # immutable action, safe to use the versions + - run: sudo apt install mono-devel + if: ${{ matrix.os == 'ubuntu-latest' }} + - uses: NuGet/setup-nuget@323ab0502cd38fdc493335025a96c8fdb0edc71f # v2.0.1 + - run: cargo build --package ${{ matrix.crate }} --verbose --release + - run: ls ./target/release + - run: cat ./target/release/${{ matrix.crate }}.nuspec + - run: nuget pack ./target/release/${{ matrix.crate }}.nuspec Publish: - needs: PublishJob + needs: + - PublishNugetJob + - PublishCrateJob runs-on: ubuntu-latest steps: - run: echo "Publishing Passed"