Merge pull request #6605 from EwoutH/ci-maint

CI: Update GitHub actions environments and used actions
This commit is contained in:
Beep6581
2023-08-29 00:17:41 +02:00
committed by GitHub
3 changed files with 13 additions and 8 deletions

View File

@@ -10,8 +10,10 @@ on:
branches: branches:
- dev - dev
workflow_dispatch: workflow_dispatch:
env: env:
publish_pre_dev_labels: '[]' publish_pre_dev_labels: '[]'
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@@ -21,7 +23,7 @@ jobs:
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
@@ -104,7 +106,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: |
@@ -157,7 +159,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

View File

@@ -10,6 +10,7 @@ on:
branches: branches:
- dev - dev
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: macos-11 runs-on: macos-11

View File

@@ -10,11 +10,13 @@ on:
branches: branches:
- dev - dev
workflow_dispatch: workflow_dispatch:
env: env:
publish_pre_dev_labels: '[]' publish_pre_dev_labels: '[]'
jobs: jobs:
build: build:
runs-on: windows-2022 runs-on: windows-latest
defaults: defaults:
run: run:
shell: msys2 {0} shell: msys2 {0}
@@ -24,7 +26,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
@@ -52,7 +54,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
@@ -199,14 +201,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