Skip to content

Commit

Permalink
update workflows (GPSBabel#932)
Browse files Browse the repository at this point in the history
* move github workflows towards cmake.

* update action versions.

* update actions

* add workflow dispatch to all workflows

* remove travis
  • Loading branch information
tsteven4 authored Oct 12, 2022
1 parent a331cb6 commit 2e32545
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 152 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
workflow_dispatch: ~

jobs:
analyze:
Expand All @@ -38,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -67,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
10 changes: 3 additions & 7 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: "fedora"

on:
push:
branches: [ '**']
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
- cron: '27 3 * * 2'
workflow_dispatch: ~

jobs:

Expand All @@ -26,7 +22,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: build_and_test
run: |
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
workflow_dispatch: ~

jobs:
macos:
Expand All @@ -19,31 +20,35 @@ jobs:
include:
- QT_VERSION: '5.15.2'
XCODE_VERSION: '12.4'
GENERATOR: qmake
GENERATOR: 'Ninja'
RELEASE: false
- QT_VERSION: '6.2.4'
XCODE_VERSION: '12.5.1'
GENERATOR: qmake
RELEASE: true
GENERATOR: 'qmake'
RELEASE: false
- QT_VERSION: '6.2.4'
XCODE_VERSION: '12.5.1'
GENERATOR: 'Ninja'
GENERATOR: 'Xcode'
RELEASE: false
- QT_VERSION: '6.2.4'
XCODE_VERSION: '12.5.1'
GENERATOR: 'Ninja'
RELEASE: true

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Qt
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: ~/Cache
key: ${{ runner.os }}-${{ matrix.QT_VERSION }}-${{ secrets.CACHE_VERSION }}

- name: Qt install setup
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.9'

Expand Down Expand Up @@ -82,7 +87,7 @@ jobs:
./tools/uploadtool/upload_github.sh gui/GPSBabel-*.dmg
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: MacOS_Installer ${{ join(matrix.*) }}
path: gui/GPSBabel-*.dmg
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
workflow_dispatch: ~

jobs:
ubuntu:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
workflow_dispatch: ~

jobs:

Expand Down Expand Up @@ -64,18 +65,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Qt
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: ~/Cache
key: ${{ runner.os }}-${{ matrix.QT_VERSION }}-${{ matrix.COMPILER }}-${{ secrets.CACHE_VERSION }}

- name: Install Qt setup(aqt)
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.9'

Expand Down Expand Up @@ -123,7 +124,7 @@ jobs:
./tools/uploadtool/upload_github.sh bld/gui/GPSBabel-*-Setup.exe
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Windows_Installer ${{ join(matrix.*) }}
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/windows_ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Qt
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: ~/Cache
key: ${{ runner.os }}-${{ matrix.QT_VERSION }}-${{ matrix.COMPILER }}-${{ secrets.CACHE_VERSION }}

- name: Install Qt setup(aqt)
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.9'

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./test_encoding_utf8 2>&1
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Windows_Installer ${{ join(matrix.*) }}
path: |
Expand Down
125 changes: 0 additions & 125 deletions .travis.yml

This file was deleted.

0 comments on commit 2e32545

Please sign in to comment.