Skip to content

Commit b9497f6

Browse files
authored
Merge pull request #119 from pythonnet/ci
CI improvements
2 parents b3b3774 + 10e1d61 commit b9497f6

4 files changed

Lines changed: 200 additions & 180 deletions

File tree

.github/actions/install-mono/action.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ runs:
1414
- name: Cache setup on Windows
1515
if: runner.os == 'Windows'
1616
run: |
17-
mkdir -p .choco-cache
18-
choco config set cacheLocation $(pwd)/.choco-cache
19-
shell: bash
17+
New-Item -ItemType Directory -Path .choco-cache -Force | Out-Null
18+
choco config set cacheLocation "$PWD/.choco-cache"
19+
if ($LASTEXITCODE) { exit $LASTEXITCODE }
20+
shell: pwsh
2021

2122
- name: Cache on Windows
2223
if: runner.os == 'Windows'
@@ -52,13 +53,17 @@ runs:
5253

5354
- name: Install on Windows (x86)
5455
if: runner.os == 'Windows' && inputs.arch == 'x86'
55-
run: choco install --x86 -y mono
56-
shell: sh
56+
run: |
57+
choco install --x86 -y mono
58+
if ($LASTEXITCODE) { exit $LASTEXITCODE }
59+
shell: pwsh
5760

5861
- name: Install on Windows
5962
if: runner.os == 'Windows' && inputs.arch != 'x86'
60-
run: choco install -y mono
61-
shell: sh
63+
run: |
64+
choco install -y mono
65+
if ($LASTEXITCODE) { exit $LASTEXITCODE }
66+
shell: pwsh
6267

6368
# ===================================
6469
#

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ jobs:
9292
arch: ${{ matrix.os.platform }}
9393

9494
- name: Setup .NET
95-
# use most current version until architecture: support is released
96-
uses: actions/setup-dotnet@main
95+
uses: actions/setup-dotnet@v5
9796
with:
9897
dotnet-version: '10.0'
9998
architecture: ${{ matrix.os.platform }}
@@ -144,7 +143,7 @@ jobs:
144143
repository_url: https://test.pypi.org/legacy/
145144

146145
- name: Release
147-
uses: softprops/action-gh-release@v2
146+
uses: softprops/action-gh-release@v3
148147
if: startsWith(github.ref, 'refs/tags/v')
149148
with:
150149
files: dist/*

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
1616
- name: Upload artifact
1717
# Automatically uploads an artifact from the './_site' directory by default
18-
uses: actions/upload-pages-artifact@v4
18+
uses: actions/upload-pages-artifact@v5
1919

2020
deploy:
2121
if: github.ref == 'refs/heads/main'
@@ -31,4 +31,4 @@ jobs:
3131
steps:
3232
- name: Deploy to GitHub Pages
3333
id: deployment
34-
uses: actions/deploy-pages@v4
34+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)