1111env :
1212 APP_NAME : ' AudioCapture'
1313 LSL_URL : ' https://github.com/sccn/liblsl/releases/download'
14- LSL_RELEASE : ' 1.13.0'
15- LSL_RELEASE_SUFFIX : ' '
14+ LSL_RELEASE_PREFIX : ' v'
15+ LSL_RELEASE : ' 1.14.0'
16+ LSL_RELEASE_SUFFIX : ' b1'
1617
1718
1819jobs :
@@ -36,24 +37,25 @@ jobs:
3637 if : matrix.os == 'ubuntu-latest'
3738 run : |
3839 echo ${{ github.ref }}
39- curl -L ${LSL_URL}/${LSL_RELEASE}${LSL_RELEASE_SUFFIX}/liblsl-${LSL_RELEASE}-Linux64-bionic.deb -o liblsl.deb
40+ curl -L ${LSL_URL}/${LSL_RELEASE_PREFIX}${ LSL_RELEASE}${LSL_RELEASE_SUFFIX}/liblsl-${LSL_RELEASE}-Linux64-bionic.deb -o liblsl.deb
4041 sudo dpkg -i liblsl.deb
4142 sudo apt install -y qtbase5-dev qtmultimedia5-dev
4243
4344 - name : download liblsl (Windows)
4445 if : matrix.os == 'windows-latest'
4546 run : |
46- Invoke-WebRequest -Uri $Env:LSL_URL/$Env:LSL_RELEASE$Env:LSL_RELEASE_SUFFIX/liblsl-$Env:LSL_RELEASE-Win64.zip -o liblsl.7z
47+ Invoke-WebRequest -Uri $Env:LSL_URL/$Env:LSL_RELEASE_PREFIX$Env: LSL_RELEASE$Env:LSL_RELEASE_SUFFIX/liblsl-$Env:LSL_RELEASE-Win64.zip -o liblsl.7z
4748 7z x liblsl.7z -oLSL
4849
4950 - name : download liblsl (macOS)
5051 if : matrix.os == 'macOS-latest'
5152 run : |
52- curl -L ${LSL_URL}/${LSL_RELEASE}${LSL_RELEASE_SUFFIX}/liblsl-${LSL_RELEASE}-OSX64.tar.bz2 -o liblsl.tar.bz2
53+ curl -L ${LSL_URL}/${LSL_RELEASE_PREFIX}${ LSL_RELEASE}${LSL_RELEASE_SUFFIX}/liblsl-${LSL_RELEASE}-OSX64.tar.bz2 -o liblsl.tar.bz2
5354 mkdir LSL
5455 tar -xvf liblsl.tar.bz2 -C LSL
5556 brew install qt
5657 echo '::set-env name=CMAKE_PREFIX_PATH::/usr/local/opt/qt'
58+ # TODO: Need to fix liblsl CI
5759
5860 - name : Install Qt
5961 if : matrix.os == 'windows-latest'
@@ -73,40 +75,31 @@ jobs:
7375 - name : Install
7476 run : cmake --build build --config Release -j --target install
7577
76- - name : Package (ubuntu) # TODO: Should work on Windows too?
77- if : matrix.os == 'ubuntu-latest'
78+ - name : Package
7879 run : cmake --build build --config Release -j --target package
7980
80- - name : Package (macOS)
81- if : matrix.os == 'macOS-latest'
82- run : |
83- cd build
84- for app in *.app; do
85- /usr/local/opt/qt/bin/macdeployqt ${app} -dmg
86- mv "${app%.app}.dmg" "${app%.app}-${LSL_RELEASE}-MacOS64.dmg"
87- done
88-
81+ # TODO: Build artifact paths from variables
8982 - name : Upload Artifacts (ubuntu)
9083 if : matrix.os == 'ubuntu-latest'
9184 uses : actions/upload-artifact@master
9285 with :
9386 name : pkg-${{ matrix.os }}
94- path : build/AudioCapture-0.1-Linux64-bionic.deb # TODO: Build path from variables
87+ path : build/AudioCapture-0.1-Linux64-bionic.deb
9588
9689 - name : Upload Artifacts (macOS)
9790 if : matrix.os == 'macOS-latest'
9891 uses : actions/upload-artifact@master
9992 with :
10093 name : pkg-${{ matrix.os }}
101- path : build/AudioCapture-1.13.0-MacOS64.dmg # TODO: Build path from variables
94+ path : build/AudioCapture-0.1-OSX64.tar.bz2
10295
103- # - name: Upload Artifacts (windows)
104- # if: matrix.os == 'windows-latest'
105- # uses: actions/upload-artifact@master
106- # with:
107- # name: pkg-${{ matrix.os }}
108- # path: build/*.7z # TODO: Build path from variables
109-
96+ - name : Upload Artifacts (windows)
97+ if : matrix.os == 'windows-latest'
98+ uses : actions/upload-artifact@master
99+ with :
100+ name : pkg-${{ matrix.os }}
101+ path : build/AudioCapture-0.1-Win64.zip
102+
110103 release :
111104 needs : build
112105 runs-on : ubuntu-latest
@@ -129,11 +122,11 @@ jobs:
129122 with :
130123 name : pkg-ubuntu-latest
131124
132- # - name: Download Artifact (windows)
133- # if: startsWith(github.ref, 'refs/tags/')
134- # uses: actions/download-artifact@v1
135- # with:
136- # name: pkg-windows-latest
125+ - name : Download Artifact (windows)
126+ if : startsWith(github.ref, 'refs/tags/')
127+ uses : actions/download-artifact@v1
128+ with :
129+ name : pkg-windows-latest
137130
138131 - name : Download Artifact (macOS)
139132 if : startsWith(github.ref, 'refs/tags/')
@@ -159,17 +152,17 @@ jobs:
159152 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
160153 with :
161154 upload_url : ${{ steps.create_release.outputs.upload_url }}
162- asset_path : pkg-macOS-latest/AudioCapture-1.13.0-MacOS64.dmg
163- asset_name : AudioCapture-1.13.0-MacOS64.dmg
155+ asset_path : pkg-macOS-latest/AudioCapture-0.1-OSX64.tar.bz2
156+ asset_name : AudioCapture-0.1-OSX64.tar.bz2
164157 asset_content_type : application/octet-stream
165158
166- # - name: Upload Release Asset (windows)
167- # if: startsWith(github.ref, 'refs/tags/')
168- # uses: actions/upload-release-asset@v1
169- # env:
170- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171- # with:
172- # upload_url: ${{ steps.create_release.outputs.upload_url }}
173- # asset_path: pkg-windows-latest/*.7z
174- # asset_name: *.7z
175- # asset_content_type: application/x-7z-compressed
159+ - name : Upload Release Asset (windows)
160+ if : startsWith(github.ref, 'refs/tags/')
161+ uses : actions/upload-release-asset@v1
162+ env :
163+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
164+ with :
165+ upload_url : ${{ steps.create_release.outputs.upload_url }}
166+ asset_path : pkg-windows-latest/AudioCapture-0.1-Win64.zip
167+ asset_name : AudioCapture-0.1-Win64.zip
168+ asset_content_type : application/x-7z-compressed
0 commit comments