-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Idk, let's see if this dependency installation trick works.
- Loading branch information
1 parent
fd28e53
commit 8c03f71
Showing
2 changed files
with
44 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,42 +20,62 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, windows-latest, macos-latest] | ||
#os: [ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest] | ||
os: [windows-latest] | ||
include: | ||
- os: ubuntu-22.04 | ||
outputsuffix: ubuntu-2204 | ||
archive_type: tar | ||
archive_extension: tar.gz | ||
- os: ubuntu-20.04 | ||
outputsuffix: ubuntu-2004 | ||
archive_type: tar | ||
archive_extension: tar.gz | ||
- os: ubuntu-18.04 | ||
outputsuffix: ubuntu-1804 | ||
archive_type: tar | ||
archive_extension: tar.gz | ||
- os: macos-latest | ||
outputsuffix: mac | ||
archive_type: tar | ||
archive_extension: tar.gz | ||
#- os: ubuntu-22.04 | ||
# outputsuffix: ubuntu-2204 | ||
# archive_type: tar | ||
# archive_extension: tar.gz | ||
#- os: ubuntu-20.04 | ||
# outputsuffix: ubuntu-2004 | ||
# archive_type: tar | ||
# archive_extension: tar.gz | ||
#- os: ubuntu-18.04 | ||
# outputsuffix: ubuntu-1804 | ||
# archive_type: tar | ||
# archive_extension: tar.gz | ||
#- os: macos-latest | ||
# outputsuffix: mac | ||
# archive_type: tar | ||
# archive_extension: tar.gz | ||
- os: windows-latest | ||
outputsuffix: win | ||
archive_type: zip | ||
archive_extension: zip | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install libjpeg-turbo (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
vcpkg install libjpeg-turbo | ||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
run: | | ||
if [[ "$RUNNER_OS" == "Windows" ]]; | ||
cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --toolchain="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" | ||
else | ||
cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
endif | ||
shell: bash | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel | ||
|
||
- name: Cache vcpkg libraries | ||
if: runner.os == 'Windows' | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
C:/vcpkg/installed | ||
C:/vcpkg/vcpkg | ||
key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/vcpkg.json') }} | ||
|
||
|
||
- name: Archive Release | ||
uses: thedoctor0/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters