Skip to content

Commit

Permalink
github: Update workflow actions to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Feb 5, 2024
1 parent 4bc1abf commit 93b5684
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -53,21 +53,21 @@ jobs:
run: make dist

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-sdist
path: greaseweazle-${{ steps.vars.outputs.ver }}.zip

build-win32:
runs-on: windows-2019
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
architecture: x86
Expand Down Expand Up @@ -95,21 +95,21 @@ jobs:
7z a $GW-win32.zip $GW
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-win32
path: greaseweazle-${{ steps.vars.outputs.ver }}-win32.zip

build-win64:
runs-on: windows-2022
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
architecture: x64
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
7z a $GW-win64.zip $GW
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-win64
path: greaseweazle-${{ steps.vars.outputs.ver }}-win64.zip
29 changes: 15 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -32,21 +32,21 @@ jobs:
run: make dist

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-sdist
path: greaseweazle-${{ steps.vars.outputs.ver }}.zip

build-win32:
runs-on: windows-2019
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
architecture: x86
Expand Down Expand Up @@ -74,21 +74,21 @@ jobs:
7z a $GW-win32.zip $GW
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-win32
path: greaseweazle-${{ steps.vars.outputs.ver }}-win32.zip

build-win64:
runs-on: windows-2022
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
architecture: x64
Expand Down Expand Up @@ -116,17 +116,17 @@ jobs:
7z a $GW-win64.zip $GW
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-win64
path: greaseweazle-${{ steps.vars.outputs.ver }}-win64.zip

finalise:
needs: [build-ubuntu, build-win32, build-win64]
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -144,9 +144,10 @@ jobs:
echo "ver=$(make version)" >> $GITHUB_OUTPUT
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: greaseweazle.ci.${{ steps.vars.outputs.ver }}
pattern: greaseweazle-ci-${{ steps.vars.outputs.ver }}-*
merge-multiple: true

- name: Create Release
id: create_release
Expand Down

0 comments on commit 93b5684

Please sign in to comment.