CI: Update GitHub actions environments and used actions

Updates the used actions to their latest versions, and update the images to the -latest tags.

This currently means Ubuntu will use 20.04 LTS (and soon 22.04 LTS) and macOS will use macOS 12.

Also adds a workflow_dispatch trigger to the main workflow (the others already have it).
This commit is contained in:
Ewout ter Hoeven
2022-10-25 18:59:09 +02:00
parent 9b79c241d7
commit 809fe5e894
3 changed files with 15 additions and 12 deletions

View File

@@ -10,16 +10,17 @@ on:
branches:
- dev
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [release]
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -88,7 +89,7 @@ jobs:
- name: Restore AppImage tools from cache
id: appimage-tools-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: appimage-tools-1
path: |
@@ -138,7 +139,7 @@ jobs:
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{env.ARTIFACT_NAME}}.AppImage
path: ${{github.workspace}}/build/${{env.ARTIFACT_NAME}}.AppImage

View File

@@ -10,11 +10,12 @@ on:
branches:
- dev
workflow_dispatch:
jobs:
build:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
date -u
@@ -91,7 +92,7 @@ jobs:
"ARTIFACT_FILE: ${ARTIFACT_FILE}" \
"PUBLISH_NAME: ${PUBLISH_NAME}"
exit
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: ${{env.ARTIFACT_FILE}}
path: ${{env.ARTIFACT_PATH}}

View File

@@ -10,9 +10,10 @@ on:
branches:
- dev
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
@@ -22,7 +23,7 @@ jobs:
build_type: [release, debug]
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -249,14 +250,14 @@ jobs:
7z a -tzip "%ARTIFACT_NAME%.zip" "./%ARTIFACT_NAME%"
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{env.ARTIFACT_NAME}}
path: build\${{env.ARTIFACT_NAME}}
- name: Upload installer
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{env.ARTIFACT_NAME}}.exe
path: build\${{env.ARTIFACT_NAME}}.exe