build: bump actions/download-artifact from 3.0.2 to 4.1.4 #54
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
fetch-depth: 1 | |
- name: Build | |
run: | | |
cmake -E make_directory build/x64 | |
cmake -E make_directory build/Win32 | |
cd build/x64 | |
cmake -A x64 ../../ | |
cmake --build . --config RelWithDebInfo | |
cd ../../build/Win32 | |
cmake -A Win32 ../../ | |
cmake --build . --config RelWithDebInfo | |
- name: Copy to dist | |
run: | | |
cmake -E make_directory dist | |
cmake -E copy build/x64/RelWithDebInfo/rcedit.exe dist/rcedit-x64.exe | |
cmake -E copy build/Win32/RelWithDebInfo/rcedit.exe dist/rcedit-x86.exe | |
- name: Print help | |
shell: bash | |
run: | | |
set -eo pipefail | |
dist/rcedit-x86.exe -h | |
dist/rcedit-x64.exe -h | |
- name: Upload artifacts | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: dist | |
path: dist/ | |
release: | |
name: Release | |
runs-on: windows-2022 | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4 | |
with: | |
name: dist | |
path: dist/ | |
- run: npm install -g [email protected] [email protected] | |
- run: npx [email protected] --dry-run | |
id: get-next-version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Stamp version | |
if: steps.get-next-version.outputs.new-release-published == 'true' | |
shell: bash | |
run: | | |
set -eo pipefail | |
dist/rcedit-x64.exe dist/rcedit-x86.exe --set-product-version $VERSION --set-file-version $VERSION | |
dist/rcedit-x86.exe -h | grep -q "Rcedit v$VERSION" | |
dist/rcedit-x86.exe dist/rcedit-x64.exe --set-product-version $VERSION --set-file-version $VERSION | |
dist/rcedit-x64.exe -h | grep -q "Rcedit v$VERSION" | |
env: | |
VERSION: ${{ steps.get-next-version.outputs.new-release-version }} | |
- name: Run semantic release | |
run: npx [email protected] | |
if: steps.get-next-version.outputs.new-release-published == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |