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:
9
.github/workflows/appimage.yml
vendored
9
.github/workflows/appimage.yml
vendored
@@ -10,16 +10,17 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build_type: [release]
|
build_type: [release]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -88,7 +89,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore AppImage tools from cache
|
- name: Restore AppImage tools from cache
|
||||||
id: appimage-tools-cache
|
id: appimage-tools-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: appimage-tools-1
|
key: appimage-tools-1
|
||||||
path: |
|
path: |
|
||||||
@@ -138,7 +139,7 @@ jobs:
|
|||||||
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
|
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.ARTIFACT_NAME}}.AppImage
|
name: ${{env.ARTIFACT_NAME}}.AppImage
|
||||||
path: ${{github.workspace}}/build/${{env.ARTIFACT_NAME}}.AppImage
|
path: ${{github.workspace}}/build/${{env.ARTIFACT_NAME}}.AppImage
|
||||||
|
7
.github/workflows/macos.yml
vendored
7
.github/workflows/macos.yml
vendored
@@ -10,11 +10,12 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-11
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
date -u
|
date -u
|
||||||
@@ -91,7 +92,7 @@ jobs:
|
|||||||
"ARTIFACT_FILE: ${ARTIFACT_FILE}" \
|
"ARTIFACT_FILE: ${ARTIFACT_FILE}" \
|
||||||
"PUBLISH_NAME: ${PUBLISH_NAME}"
|
"PUBLISH_NAME: ${PUBLISH_NAME}"
|
||||||
exit
|
exit
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.ARTIFACT_FILE}}
|
name: ${{env.ARTIFACT_FILE}}
|
||||||
path: ${{env.ARTIFACT_PATH}}
|
path: ${{env.ARTIFACT_PATH}}
|
||||||
|
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
@@ -10,9 +10,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-2022
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
@@ -22,7 +23,7 @@ jobs:
|
|||||||
build_type: [release, debug]
|
build_type: [release, debug]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -49,7 +50,7 @@ jobs:
|
|||||||
- name: Configure build
|
- name: Configure build
|
||||||
run: |
|
run: |
|
||||||
export REF_NAME_FILTERED="$(echo '${{github.ref_name}}' | sed 's/[^A-z0-9_.-]//g')"
|
export REF_NAME_FILTERED="$(echo '${{github.ref_name}}' | sed 's/[^A-z0-9_.-]//g')"
|
||||||
|
|
||||||
if [ '${{github.ref_type}}' == 'tag' ]; then
|
if [ '${{github.ref_type}}' == 'tag' ]; then
|
||||||
export CACHE_SUFFIX=""
|
export CACHE_SUFFIX=""
|
||||||
else
|
else
|
||||||
@@ -249,14 +250,14 @@ jobs:
|
|||||||
7z a -tzip "%ARTIFACT_NAME%.zip" "./%ARTIFACT_NAME%"
|
7z a -tzip "%ARTIFACT_NAME%.zip" "./%ARTIFACT_NAME%"
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.ARTIFACT_NAME}}
|
name: ${{env.ARTIFACT_NAME}}
|
||||||
path: build\${{env.ARTIFACT_NAME}}
|
path: build\${{env.ARTIFACT_NAME}}
|
||||||
|
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
|
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.ARTIFACT_NAME}}.exe
|
name: ${{env.ARTIFACT_NAME}}.exe
|
||||||
path: build\${{env.ARTIFACT_NAME}}.exe
|
path: build\${{env.ARTIFACT_NAME}}.exe
|
||||||
|
Reference in New Issue
Block a user