Skip to content

use updated µcoro code #20

use updated µcoro code

use updated µcoro code #20

Workflow file for this run

name: auto-builds
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: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-latest]
build_type: [Release]
c_compiler: [clang, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-24.04
c_compiler: clang
cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: clang
- os: ubuntu-24.04
c_compiler: cl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Cache Static Qt Install
id: cache-qt6
if: startsWith(runner.os, 'Windows')
uses: actions/cache@v4
with:
path: msvc-qt
key: qt6-win64-vc2022-static
- name: Install Static Qt
if: startsWith(runner.os, 'Windows') && (steps.cache-qt6.outputs.cache-hit != 'true')
run: |
Invoke-WebRequest https://github.com/microcai/static-build-qt6/releases/download/qt6_680_msvc/qt6_680_win64-msvc2022_static.zip -OutFile .\msvc-qt.zip
expand-archive -path "msvc-qt.zip"
- name: setup env for cmake to pickup QT
if: startsWith(runner.os, 'Windows')
shell: bash
run: |
echo "QT_ROOT_DIR=${{ github.workspace }}\\msvc-qt" >> $GITHUB_ENV
echo "QT_PLUGIN_PATH=${{ github.workspace }}\\msvc-qt\\plugins" >> $GITHUB_ENV
echo "CMAKE_PREFIX_PATH=${{ github.workspace }}\\msvc-qt" >> $GITHUB_ENV
- name: setup env for cmake to pickup Clang
if: startsWith(runner.os, 'Linux')
shell: bash
run: |
echo "CC=${{ matrix.c_compiler }}" >> $GITHUB_ENV
echo "CXX=${{ matrix.cpp_compiler }}" >> $GITHUB_ENV
- name: Install System Qt
if: startsWith(runner.os, 'Linux')
run: |
sudo apt-get update
sudo apt-get install -y qt6-.+-dev
- name: Enable Developer Command Prompt
if: startsWith(runner.os, 'Windows')
uses: ilammy/msvc-dev-cmd@v1.13.0
- name: Configure Sources
run: >
cmake -G Ninja
-S ${{ github.workspace }}
-B ${{ github.workspace }}/build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install"
- name: Build Souces
run: cmake --build ${{ github.workspace }}/build
- name: Install Result
run: cmake --install ${{ github.workspace }}/build
- name: zip the result elf
if: startsWith(runner.os, 'Linux')
run: |
cd install/bin
7z a eda-tool-linux.zip edatool
- name: zip the result exe
if: startsWith(runner.os, 'Windows')
run: |
cd install/bin
7z a eda-tool-win64.zip edatool.exe
- name: upload exe Release
if: startsWith(github.ref, 'refs/tags/') && startsWith(runner.os, 'Windows') && matrix.build_type == 'Release'
uses: softprops/action-gh-release@v2
with:
files: install/bin/eda-tool-win64.zip
- name: upload linux Release
if: startsWith(github.ref, 'refs/tags/') && startsWith(runner.os, 'Linux') && matrix.build_type == 'Release'
uses: softprops/action-gh-release@v2
with:
files: install/bin/eda-tool-linux.zip
- name: Upload generic artifacts
uses: actions/upload-artifact@v4.4.0
with:
name: eda-tool-${{ runner.os }}
path: install/bin