Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace AppVeyor with GitHub Actions
Build tagged released using GitHub Actions instead of relying on AppVeyor. This makes it easier to retain older binary versions.
- Loading branch information
Björn Blissing
committed
Aug 10, 2021
1 parent
6029679
commit 81bff3a
Showing
6 changed files
with
102 additions
and
110 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Workflow to build binary artifacts for tagged versions | ||
name: Build | ||
|
||
|
||
# Triggers the workflow when a new tag is pushed (but disregard new branches) | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a matrix job called "Release" | ||
Release: | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- name: v141-x86 | ||
os: windows-2016 | ||
generator: "Visual Studio 15 2017" | ||
arch: Win32 | ||
- name: v141-x64 | ||
os: windows-2016 | ||
generator: "Visual Studio 15 2017" | ||
arch: x64 | ||
- name: v142-x86 | ||
os: windows-2019 | ||
generator: "Visual Studio 16 2019" | ||
arch: Win32 | ||
- name: v142-x64 | ||
os: windows-2019 | ||
generator: "Visual Studio 16 2019" | ||
arch: x64 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache source code | ||
uses: actions/cache@v2 | ||
with: | ||
# Cache the downloaded external source code and only update the cache when the download_dependencies.bat file is changed | ||
path: c:/3rdparty | ||
key: ${{ hashFiles('download_dependencies.bat') }} | ||
|
||
# Download source code | ||
- name: Download source code | ||
run: .\download_dependencies.bat | ||
|
||
# Compile code | ||
- name: Compile code | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake ${env:GITHUB_WORKSPACE} -G "${{ matrix.generator }}" -A ${{ matrix.arch }} -DZLIB_SOURCE_DIR=c:/3rdparty/zlib -DLIBPNG_SOURCE_DIR=c:/3rdparty/libpng -DLIBJPEG_SOURCE_DIR=c:/3rdparty/libjpeg -DLIBTIFF_SOURCE_DIR=c:/3rdparty/tiff -DFREETYPE_SOURCE_DIR=c:/3rdparty/freetype -DGLUT_SOURCE_DIR=c:/3rdparty/glut -DGIFLIB_SOURCE_DIR=c:/3rdparty/giflib -DCURL_SOURCE_DIR=c:/3rdparty/curl -DCMAKE_INSTALL_PREFIX="C:/projects/osg-3rdparty-cmake/build/3rdParty/${{ matrix.name }}" | ||
cmake --build . --config "Debug" --target install | ||
cmake --build . --config "Release" --target install | ||
- name: Compress archive | ||
run: | | ||
cd C:\projects\osg-3rdparty-cmake\build\3rdParty\${{ matrix.name }} | ||
7z a C:\projects\osg-3rdparty-cmake\${{ matrix.name }}.zip . | ||
- name: Publish artifact | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "c:\\projects\\osg-3rdparty-cmake\\${{ matrix.name }}.zip" | ||
allowUpdates: true | ||
bodyFile: "versions.md" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Library | Version | ||
------- | ------- | ||
zlib | 1.2.11 | ||
libpng | 1.6.37 | ||
libjpeg | 9d | ||
libtiff | 4.2.0 | ||
FreeType | 2.10.4 | ||
GLUT | SHA:8cd96cb440f1f2fac3a154227937be39d06efa53 | ||
GIFLIB | 5.2.1 | ||
cURL | 7.76.1 |