Skip to content

Fixing 2.2.3 sdk header bug #83

Fixing 2.2.3 sdk header bug

Fixing 2.2.3 sdk header bug #83

name: Build binaries
on:
push:
branches: [ master, linux2 ]
paths-ignore:
- com.valve.openvr/Runtime/x64/**
- com.valve.openvr/Runtime/x86/**
jobs:
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Pull latest
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: git pull
- name: Generate build files (windows x64)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: cmake -G "Visual Studio 16 2019" .
- name: Build binaries (windows x64)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: cmake --build . --target ALL_BUILD --config Release
- name: Add modified binaries (x64)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: |
git add -u
- name: Clean 64-bit build files
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: git clean -d -f -x
- name: Generate build files (windows x86)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: cmake -G "Visual Studio 16 2019" -A Win32 .
- name: Build binaries (windows x86)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: cmake --build . --target ALL_BUILD --config Release
- name: Add modified binaries (windows x86)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: |
git add -u
- name: Push modified binaries (windows)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Github Actions: New windows binaries" -a
$global:LASTEXITCODE = 0
- name: Push modified binaries
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
build-linux:
needs: build-windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Pull latest
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: git pull
- name: Generate build files (linux)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: cmake .
- name: Build binaries (linux)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: make
- name: Add modified binaries (x64)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: |
set +e
git add -u
set -e
- name: Commit modified binaries (linux)
working-directory: ${{runner.workspace}}/unity-xr-plugin
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
set +e
git commit -m "Github Actions: New linux binaries" -a
set -e
- name: Push modified binaries
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}