Merge pull request #6605 from EwoutH/ci-maint
CI: Update GitHub actions environments and used actions
This commit is contained in:
8
.github/workflows/appimage.yml
vendored
8
.github/workflows/appimage.yml
vendored
@@ -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
|
||||||
|
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
@@ -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
|
||||||
|
10
.github/workflows/windows.yml
vendored
10
.github/workflows/windows.yml
vendored
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
Reference in New Issue
Block a user