Problem: missing verification api for wc 2.0 (fix #474) (#475) #844
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
name: Linux (libc++) Build CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
tags: | |
- "v*.*.*" | |
merge_group: | |
pull_request: | |
paths-ignore: | |
- README.md | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build play-cpp-sdk library | |
run: CXX=clang++-10 CXXFLAGS="-std=c++14 -stdlib=libc++" cargo build --package play-cpp-sdk --release | |
- name: Build demo project | |
working-directory: demo | |
run: make CXX=clang++-10 | |
- name: Pack binaries and bindings | |
run: | | |
PLATFORM="$(uname -s)_x86_64" | |
BUILD_TYPE="tarball" | |
mkdir -p install | |
cp -r demo/sdk install | |
cp ./LICENSE install/sdk | |
cp ./CHANGELOG.md install/sdk | |
cd install | |
tar zcvf ../play_cpp_sdk_libc++_${PLATFORM}.tar.gz * | |
cd .. | |
sha256sum *.tar.gz > "checksums-libc++_$PLATFORM.txt" | |
echo "release_file=play_cpp_sdk_libc++_$PLATFORM.tar.gz" >> $GITHUB_ENV | |
echo "checksum_file=checksums-libc++_$PLATFORM.txt" >> $GITHUB_ENV | |
cat $GITHUB_ENV | |
- name: Upload binaries and bindings to Release | |
uses: softprops/action-gh-release@v1 | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
files: | | |
${{ env.release_file }} | |
${{ env.checksum_file }} |