Skip to content

Commit

Permalink
CI: update GitHub actions from QtRVSim
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Pisa <[email protected]>
  • Loading branch information
ppisa committed Sep 29, 2024
1 parent 1d9a915 commit cbc61d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Debug

on: [ push, workflow_dispatch, pull_request ]
on: [ push, workflow_dispatch, pull_request, merge_group ]

jobs:
build:
Expand All @@ -18,8 +18,8 @@ jobs:
build_type: "Debug",
cc: "gcc", cxx: "g++", build_system: "Unix Makefiles",
qt_version: "native",
qt_install_command: "sudo apt-get update && sudo apt-get install qt5-default"
# Apt is significantly faster that aqt.
qt_install_command: "sudo apt-get update && sudo apt-get install qtbase5-dev",
# Apt is significantly faster that aqt.
}
- {
name: "Ubuntu Latest GCC + Qt6",
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache Qt
# Cache only when not installed by os package manager
Expand All @@ -68,7 +68,7 @@ jobs:

- name: Install specified Qt version
if: matrix.config.qt_version != 'native'
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.config.qt_version }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
run: ctest --output-on-failure --verbose

- name: Store created artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: target-${{ runner.os }}-qt${{ matrix.config.qt_version }}
path: ${{ github.workspace }}/build/target
Expand All @@ -124,7 +124,7 @@ jobs:
qt_version: 5.15.2,
}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache Qt
id: cache-qt
Expand All @@ -135,19 +135,19 @@ jobs:

- name: Setup EMSDK cache
id: cache-system-libraries
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: 'emsdk-cache'
key: ${{ runner.os }}-${{ matrix.config.emsdk_version }}-${{ matrix.config.qt_version }}-emsdk

- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v10
uses: mymindstorm/setup-emsdk@v11
with:
version: ${{ matrix.config.emsdk_version }}
actions-cache-folder: 'emsdk-cache'

- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.config.qt_version }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
Expand All @@ -171,7 +171,7 @@ jobs:
run: cmake --build . -j3

- name: Store created artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: target-wasm-${{ runner.os }}-qt${{ matrix.config.qt_version }}
path: ${{ github.workspace }}/build/target
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# CMake will not configure without Qt installed
- name: Install Qt
run: sudo apt-get update && sudo apt-get install qt5-default
run: sudo apt-get update && sudo apt-get install qtbase5-dev

- name: Create Build Environment
run: cmake -E make_directory ${{ github.workspace }}/build
Expand All @@ -42,7 +42,7 @@ jobs:
run: make open_build_service_bundle

- name: Store OBS bundle
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: obs-package-bundle
path: ${{ github.workspace }}/build/target/pkg
path: ${{ github.workspace }}/build/target/pkg

0 comments on commit cbc61d1

Please sign in to comment.