common: Fix logic when computing status across multiple displays #70
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: Build/Release creation | |
on: | |
push: | |
branches: [ main ] | |
tags: 'v*' | |
pull_request: | |
branches: [ main ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Get number of CPU cores | |
uses: SimenB/github-actions-cpu-cores@v2 | |
id: cpu-cores | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-tags: true | |
fetch-depth: 0 | |
filter: tree:0 | |
- name: Install marko | |
run: python -m pip install marko | |
- uses: res2k/setup-winsdk@support-sdk-26100 # TEMPORARY until upstream fbactions/setup-winsdk works w/ 26100 | |
with: | |
winsdk-build-version: 26100 | |
name: Install Windows 11 SDK 26100 | |
- name: Configure CMake | |
run: cmake -A x64,version=10.0.26100.0 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install | |
- name: Build | |
# Build your program with the given configuration | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j ${{ steps.cpu-cores.outputs.count }} | |
- name: Install | |
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: HDRTray | |
path: ${{github.workspace}}/install | |
- shell: bash | |
run: | | |
RELEASE_ARCHIVE=HDRTray-${GITHUB_REF/refs\/tags\//}.zip | |
echo "RELEASE_ARCHIVE=$RELEASE_ARCHIVE" >> $GITHUB_OUTPUT | |
id: release_archive_name | |
- run: | | |
7z a ${{ steps.release_archive_name.outputs.RELEASE_ARCHIVE }} ${{github.workspace}}/install/* | |
name: Make release archive | |
id: release_archive | |
if: startsWith(github.ref, 'refs/tags/') | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ${{ steps.release_archive_name.outputs.RELEASE_ARCHIVE }} |