Skip to content

Commit df5848d

Browse files
authored
Merge pull request #8 from labstreaminglayer/ci_updates
CI updates
2 parents 68bc86c + 50b01a7 commit df5848d

File tree

1 file changed

+14
-45
lines changed

1 file changed

+14
-45
lines changed

.github/workflows/cppcmake.yml

Lines changed: 14 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
LSL_URL: 'https://github.com/sccn/liblsl/releases/download'
1313
LSL_RELEASE_PREFIX: 'v'
1414
LSL_RELEASE: '1.14.0'
15-
LSL_RELEASE_SUFFIX: 'b1'
15+
LSL_RELEASE_SUFFIX: 'b4'
1616

1717

1818
jobs:
@@ -58,10 +58,9 @@ jobs:
5858
5959
- name: Install Qt
6060
if: matrix.os == 'windows-latest'
61-
# uses: jurplel/install-qt-action@v2
62-
uses: ouuan/[email protected] # workaround until the aqtinstall timeout is fixed
61+
uses: jurplel/install-qt-action@v2
6362
with:
64-
version: 5.14.0
63+
version: 5.15.1
6564

6665
- name: Configure CMake
6766
shell: bash
@@ -77,55 +76,27 @@ jobs:
7776
- name: Package
7877
run: cmake --build build --config Release -j --target package
7978

80-
# TODO: upload-artifact@v2 (in-progress) will support file glob
81-
- name: Upload Artifacts (ubuntu)
82-
if: matrix.os == 'ubuntu-latest'
83-
uses: actions/upload-artifact@master
84-
with:
85-
name: pkg-${{ matrix.os }}
86-
path: build/AppTemplate_cpp_qt-1.13.0-Linux64-bionic.deb
87-
88-
- name: Upload Artifacts (macOS)
89-
if: matrix.os == 'macOS-latest'
90-
uses: actions/upload-artifact@master
91-
with:
92-
name: pkg-${{ matrix.os }}
93-
path: build/AppTemplate_cpp_qt-1.13.0-OSX64.tar.bz2
94-
9579
# TODO: Can reconstruct filename from project name and version in CMakeCache.txt using powershell:
9680
# Select-String -Path build\CMakeCache.txt -Pattern "CMAKE_PROJECT_NAME:STATIC=(.*)" | % { $_.matches.groups[1] } | % {$_.Value}
9781
# Select-String -Path build\CMakeCache.txt -Pattern "CMAKE_PROJECT_VERSION:STATIC=(.*)" | % { $_.matches.groups[1] } | % {$_.Value}
98-
- name: Upload Artifacts (windows)
99-
if: matrix.os == 'windows-latest'
100-
uses: actions/upload-artifact@master
82+
- name: Upload Artifacts
83+
uses: actions/upload-artifact@v2
10184
with:
10285
name: pkg-${{ matrix.os }}
103-
path: build/AppTemplate_cpp_qt-1.13.0-Win64.zip
86+
path: |
87+
build/*.deb
88+
build/*.tar.bz2
89+
build/*.zip
10490
10591
release:
10692
needs: build
10793
runs-on: ubuntu-latest
10894
steps:
10995

110-
# TODO: download-artifact@v2 will support multiple download
111-
- name: Download Artifact (ubuntu)
96+
- name: Download Artifact
11297
if: startsWith(github.ref, 'refs/tags/')
113-
uses: actions/download-artifact@v1
114-
with:
115-
name: pkg-ubuntu-latest
116-
117-
- name: Download Artifact (windows)
118-
if: startsWith(github.ref, 'refs/tags/')
119-
uses: actions/download-artifact@v1
120-
with:
121-
name: pkg-windows-latest
122-
123-
- name: Download Artifact (macOS)
124-
if: startsWith(github.ref, 'refs/tags/')
125-
uses: actions/download-artifact@v1
126-
with:
127-
name: pkg-macOS-latest
128-
98+
uses: actions/download-artifact@v2
99+
129100
- name: Create Release
130101
if: startsWith(github.ref, 'refs/tags/')
131102
id: create_release
@@ -138,7 +109,5 @@ jobs:
138109
draft: false
139110
prerelease: false
140111
# body_path: CHANGELOG.txt
141-
files: |
142-
pkg-ubuntu-latest/AppTemplate_cpp_qt-1.13.0-Linux64-bionic.deb
143-
pkg-macOS-latest/AppTemplate_cpp_qt-1.13.0-OSX64.tar.bz2
144-
pkg-windows-latest/AppTemplate_cpp_qt-1.13.0-Win64.zip
112+
files: 'pkg-*/*'
113+

0 commit comments

Comments
 (0)