Bump GitHub Actions versions

This commit is contained in:
GriffinR 2024-12-18 12:17:12 -05:00
parent 8f1e112858
commit bce32121f0

View file

@ -20,21 +20,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v2 uses: jurplel/install-qt-action@v4
with: with:
version: '5.14.2' version: '5.14.2'
modules: 'qtwidgets qtqml qtcharts' modules: 'qtcharts'
cached: ${{ steps.cache-qt.outputs.cache-hit }} cache: 'true'
- name: Configure - name: Configure
run: qmake porymap.pro run: qmake porymap.pro
@ -46,21 +39,14 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v4
with: with:
version: '6.7.*' version: '6.7.*'
modules: 'qtcharts' modules: 'qtcharts'
cached: ${{ steps.cache-qt.outputs.cache-hit }} cache: 'true'
- name: Configure - name: Configure
run: qmake -config release porymap.pro run: qmake -config release porymap.pro
@ -84,7 +70,7 @@ jobs:
run: zip -r porymap-macOS-${{ github.ref_name }}.zip porymap-macOS-${{ github.ref_name }} run: zip -r porymap-macOS-${{ github.ref_name }}.zip porymap-macOS-${{ github.ref_name }}
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: porymap-macOS-${{ github.ref_name }}.zip files: porymap-macOS-${{ github.ref_name }}.zip
@ -95,7 +81,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: dsaltares/fetch-gh-release-asset@master - uses: dsaltares/fetch-gh-release-asset@master
if: steps.cache-static-qt.outputs.cache-hit != 'true' if: steps.cache-static-qt.outputs.cache-hit != 'true'
@ -153,7 +139,7 @@ jobs:
run: powershell.exe -Command "Compress-Archive -Path porymap-windows-${{ github.ref_name }} -DestinationPath porymap-windows-${{ github.ref_name }}.zip" run: powershell.exe -Command "Compress-Archive -Path porymap-windows-${{ github.ref_name }} -DestinationPath porymap-windows-${{ github.ref_name }}.zip"
- name: Create Release - name: Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: porymap-windows-${{ github.ref_name }}.zip files: porymap-windows-${{ github.ref_name }}.zip