-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
123 additions
and
1 deletion.
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,50 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: build-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] # TODO: macos-11 | ||
fail-fast: false | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: hendrikmuhs/ccache-action@v1 | ||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-11' | ||
|
||
- name: Get short git SHA | ||
id: sha | ||
run: echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Install system dependencies (Ubuntu) | ||
run: ./scripts/install_deps_ubuntu.sh | ||
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Install system dependencies (Mac) | ||
run: ./scripts/install_deps_mac.sh | ||
if: matrix.os == 'macos-11' | ||
|
||
- name: Install venv dependencies | ||
run: ./bootstrap_venv.sh | ||
|
||
- name: Create and upload release | ||
run: | | ||
TAG=v.$(git rev-parse --short HEAD) | ||
git tag $TAG | ||
git push origin $TAG | ||
tar -czvf venv-${{ matrix.os }}.tar.gz venv | ||
gh release create $TAG | ||
gh release upload $TAG venv-${{ matrix.os }}.tar.gz |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
*~ | ||
|
||
# venv-related | ||
build.venv | ||
venv | ||
|
||
# Prerequisites | ||
*.d | ||
|
||
|
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,25 @@ | ||
#!/bin/bash | ||
|
||
set -x # echo on | ||
set -e # exit on error | ||
|
||
brew install --verbose \ | ||
assimp \ | ||
boost \ | ||
catch2 \ | ||
ccache \ | ||
ceres-solver \ | ||
ffmpeg \ | ||
glew \ | ||
glog \ | ||
grpc \ | ||
libjpeg \ | ||
libpng \ | ||
libtiff \ | ||
lz4 \ | ||
opencv \ | ||
openexr \ | ||
openssl \ | ||
pre-commit \ | ||
protobuf \ | ||
zstd |
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,41 @@ | ||
#!/bin/bash | ||
|
||
set -x # echo on | ||
set -e # exit on error | ||
|
||
sudo apt-get -qq update | ||
|
||
# Please keep this list sorted. | ||
sudo apt-get -y install \ | ||
ccache \ | ||
clang \ | ||
clang-tidy \ | ||
cmake \ | ||
gfortran \ | ||
libassimp-dev \ | ||
libatlas-base-dev \ | ||
libavcodec-dev \ | ||
libavdevice-dev \ | ||
libavformat-dev \ | ||
libavutil-dev \ | ||
libboost-coroutine-dev \ | ||
libc++-dev \ | ||
libcrypto++-dev \ | ||
libegl1-mesa-dev \ | ||
libglew-dev \ | ||
libgoogle-glog-dev \ | ||
libgrpc-dev \ | ||
libgrpc++-dev \ | ||
libgtest-dev \ | ||
libopencv-dev \ | ||
libprotobuf-dev \ | ||
libssl-dev \ | ||
libsuitesparse-dev \ | ||
libswscale-dev \ | ||
libtiff-dev \ | ||
protobuf-compiler \ | ||
protobuf-compiler-grpc \ | ||
&& sudo apt-get clean | ||
|
||
|
||
ls /usr/lib/x86_64-linux-gnu/libgrpc++* |