Skip to content

Optimize some existing implementations; (#4) #62

Optimize some existing implementations; (#4)

Optimize some existing implementations; (#4) #62

Workflow file for this run

name: Multi-platform Build
on:
push:
branches:
- master
- action-test
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
build_type: [Debug, Release]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DUSE_STATIC=ON ..
cmake --build . --config ${{ matrix.build_type }}
- name: Publish Artifacts
if: ${{ matrix.os }} == "windows-latest"
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.build_type }}
path: |
build/${{ matrix.build_type }}/rtc.*
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Restore All Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Publish Release
id: rtc_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 'latest'
name: latest-${{ steps.date.outputs.date }}
draft: false
prerelease: false
files: artifacts/**/*