-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (48 loc) · 1.42 KB
/
linux-libstdc++-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Linux (libstdc++) 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-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build play-cpp-sdk library
run: cargo build --package play-cpp-sdk --release
- name: Build demo project
working-directory: demo
run: make CXX=g++
- 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_libstdc++_${PLATFORM}.tar.gz *
cd ..
sha256sum *.tar.gz > "checksums-libstdc++_$PLATFORM.txt"
echo "release_file=play_cpp_sdk_libstdc++_$PLATFORM.tar.gz" >> $GITHUB_ENV
echo "checksum_file=checksums-libstdc++_$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 }}