new release #36
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 | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
# Skip building pull requests from the same repository | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != '${{ github.repository }}' | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
os: [windows-2022] | |
env: | |
BUILD_TYPE: Release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install ninja-build tool | |
uses: seanmiddleditch/gha-setup-ninja@v5 | |
- name: Install Static Qt | |
run: | | |
Invoke-WebRequest https://github.com/microcai/static-build-qt6/releases/download/qt6_661_static_64/qt6_661_static_64.zip -OutFile .\qt6_661_static_64.zip | |
expand-archive -path "qt6_661_static_64.zip" | |
- name: Enable Developer Command Prompt | |
uses: ilammy/[email protected] | |
- name: Build | |
run: | | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} "-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install" -DCMAKE_PREFIX_PATH=qt6_661_static_64/Qt6_binaries -B build | |
cmake --build build | |
cmake --install build | |
- name: zip the result | |
run: | | |
cd install/bin | |
7z a eda-tool-win64.zip edatool.exe | |
- name: Release if on tags | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: install/bin/eda-tool-win64.zip | |
- name: Upload generic artifacts | |
uses: actions/[email protected] | |
with: | |
name: eda-tool-win64 | |
path: install/bin |