13 Commits

Author SHA1 Message Date
2273c0156e Clean up CI. 2026-02-21 18:30:26 -05:00
417f01b527 remove [env] 2026-02-21 18:24:18 -05:00
d776602fe8 Remove debug. 2026-02-21 18:20:51 -05:00
e2ddadd952 Don't force in cargo.toml 2026-02-21 18:20:29 -05:00
61c7f59237 debug 2026-02-21 18:16:56 -05:00
1e63eabd46 Set qmake? 2026-02-21 18:12:45 -05:00
ac83b3e30f Don't set QMAKE. 2026-02-21 18:04:53 -05:00
a42ad73a57 Add setup action. 2026-02-21 18:01:51 -05:00
1ec13aa43a Move env. 2026-02-21 17:52:38 -05:00
0a3f095080 Install qt using action. 2026-02-21 17:51:09 -05:00
6474c5b6bd Reuse steps. 2026-02-21 17:49:42 -05:00
717ea70895 Fix qmake. 2026-02-21 17:37:46 -05:00
8eada4bbee Update push. 2026-02-21 17:35:04 -05:00
3 changed files with 59 additions and 26 deletions

View File

@@ -1,6 +1,2 @@
[build]
rustflags = [ "-C", "link-arg=-fuse-ld=lld", ]
[env]
QMAKE="/opt/Qt/6.7.3/gcc_64/bin/qmake6"
LD_LIBRARY_PATH="/opt/Qt/6.7.3/gcc_64/lib"

20
.github/actions/setup-qt/action.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: "Setup Qt"
description: "Install clide dependencies"
inputs:
qt-version:
description: "Qt version to install"
required: true
runs:
using: "composite"
steps:
- name: Install apt packages
run: |
sudo apt update -y
sudo apt install -y build-essential cmake curl libgl1-mesa-dev python3 python3-pip
shell: bash
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ inputs.qt-version }}

View File

@@ -3,48 +3,65 @@ name: Build
on:
push:
branches:
- main
- '**'
tags:
- 'v*'
pull_request:
env:
QT_VERSION: 6.7.3
jobs:
Build:
name: Build
runs-on: ubuntu-latest
env:
QT_VERSION: 6.7.3
QMAKE: ${{ github.workspace }}/${{ env.QT_VERSION }}/gcc_64/bin/qmake
steps:
- uses: actions/checkout@v6
- name: Install apt packages
run: |
sudo apt update -y
sudo apt install -y \
build-essential \
cmake \
curl \
libgl1-mesa-dev \
python3 \
python3-pip
- name: Setup Qt
uses: ./.github/actions/setup-qt
with:
qt-version: ${{ env.QT_VERSION }}
- name: Install aqtinstall
- name: Build libclide
run: |
python3 -m pip install aqtinstall
- name: Install Qt
run: |
aqt install-qt linux desktop $QT_VERSION linux_gcc_64
cargo b -p libclide --release
- name: Build clide
run: |
cargo b --release
Test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Qt
uses: ./.github/actions/setup-qt
with:
qt-version: ${{ env.QT_VERSION }}
- name: Test libclide
run: |
cargo test -p libclide
- name: Test clide
run: |
cargo test
Lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Qt
uses: ./.github/actions/setup-qt
with:
qt-version: ${{ env.QT_VERSION }}
- name: Lint libclide
run: |
cargo clippy --manifest-path libclide/Cargo.toml -- -D warnings
- name: Lint clide
run: |
cargo clippy -- -D warnings