Skip to content

Commit

Permalink
Improved the gh workflows scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SZinedine committed Feb 10, 2024
1 parent 76c4a94 commit 245e282
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,52 @@
name: Running Tests


on:
workflow_dispatch:
push:
branches: [ "main" ]
branches: [ "master" ]
pull_request:
branches: [ "main" ]
branches: [ "master" ]


env:
BUILD_TYPE: Debug
BUILD_DIR: ${{github.workspace}}/build
QT_LOC: ${{github.workspace}}/Qt
QT_VERSION: 5.12.2
QT_ARCH: gcc_64
BUILD_DIR: ${{github.workspace}}/build


jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Cache Qt
id: cache-qt
uses: actions/cache@v4
with:
path: ../Qt
path: ${{env.QT_LOC}}
key: ${{runner.os}}-${{env.QT_ARCH}}-QtCache-${{env.QT_VERSION}}


- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
arch: ${{env.QT_ARCH}}
aqtversion: '==2.0.0'
version: 5.15.2
dir: ${{env.QT_LOC}}
arch: gcc_64
aqtversion: '==3.1.11'
setup-python: false
cache: true

Expand All @@ -50,7 +58,6 @@ jobs:
- name: Build for testing
run: |
cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} --parallel $(nproc)
${{env.BUILD_DIR}}/deeptags
- name: Re-Configure CMake for regular build
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/linux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
BUILD_DIR_PATH: ${{github.workspace}}/build
QT_LOC: ${{github.workspace}}/Qt
QT_VERSION: 5.12.2
QT_ARCH: gcc_64
TAG: ${{github.ref_name}}
Expand All @@ -33,15 +34,16 @@ jobs:
id: cache-qt
uses: actions/cache@v4
with:
path: ../Qt
path: ${{env.QT_LOC}}
key: ${{runner.os}}-${{env.QT_ARCH}}-QtCache-${{env.QT_VERSION}}

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
dir: ${{env.QT_LOC}}
arch: gcc_64
aqtversion: '==2.0.0'
aqtversion: '==3.1.11'
setup-python: false
cache: true

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
with:
name: DeepTags-${{github.ref_name}}-win-x64.zip
path: DeepTags-${{github.ref_name}}-win-x64.zip
retention-days: 1



Expand Down

0 comments on commit 245e282

Please sign in to comment.