Skip to content

CI: update actions to Node 24 compatible versions (checkout@v6, uploa… #8

CI: update actions to Node 24 compatible versions (checkout@v6, uploa…

CI: update actions to Node 24 compatible versions (checkout@v6, uploa… #8

Workflow file for this run

name: build
on:
push:
branches: [ "master" ]
tags: [ "v*" ]
pull_request:
branches: [ "master" ]
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
arch: [Win32, x64]
include:
- arch: Win32
suffix: x86
- arch: x64
suffix: x64
steps:
- uses: actions/checkout@v6
- name: Configure CMake
run: cmake -G "Visual Studio 17 2022" -A ${{ matrix.arch }} -B build
- name: Build
run: cmake --build build --config Release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: doc2pdf-${{ matrix.suffix }}
path: build\Release\doc2pdf.exe
- name: Upload to release
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build\Release\doc2pdf.exe
tag: ${{ github.ref_name }}
asset_name: doc2pdf-${{ matrix.suffix }}.exe
overwrite: true