Skip to content

Commit

Permalink
new job to build on ubuntu24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Oct 7, 2024
1 parent 4c59542 commit 6decb90
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build_on_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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: ubuntu-24.04
strategy:
matrix:
build_type: [Release]
os: [ubuntu-24.04]
env:
BUILD_TYPE: Release
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v5

- name: Install Qt
run: apt-get install -y qt6-.+-dev

- name: Build
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} "-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install" -B ${{github.workspace}}/build
cmake --build ${{github.workspace}}/build
cmake --install ${{github.workspace}}/build
- name: zip the result
run: |
cd install/bin
7z a eda-tool-linux.zip edatool
- name: upload Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: install/bin/eda-tool-linux.zip
File renamed without changes.

0 comments on commit 6decb90

Please sign in to comment.