Skip to content

Update copyright

Update copyright #84

Workflow file for this run

name: Build/Release creation
on:
push:
branches: [ main ]
tags: 'v*'
pull_request:
branches: [ main ]
workflow_dispatch:
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}}
- shell: bash
run: |
sha256sum * > sha256sum.txt
name: Compute sha256sums for built files
working-directory: ${{github.workspace}}/install
- uses: actions/upload-artifact@v4
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/')
- shell: bash
run: |
sha256sum ${{ steps.release_archive_name.outputs.RELEASE_ARCHIVE }} > sha256sum.txt
name: Compute sha256sum for 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 }}
sha256sum.txt