Compare commits
13 Commits
0ebd45ae15
...
2273c0156e
| Author | SHA1 | Date | |
|---|---|---|---|
| 2273c0156e | |||
| 417f01b527 | |||
| d776602fe8 | |||
| e2ddadd952 | |||
| 61c7f59237 | |||
| 1e63eabd46 | |||
| ac83b3e30f | |||
| a42ad73a57 | |||
| 1ec13aa43a | |||
| 0a3f095080 | |||
| 6474c5b6bd | |||
| 717ea70895 | |||
| 8eada4bbee |
@@ -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
20
.github/actions/setup-qt/action.yml
vendored
Normal 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 }}
|
||||
61
.github/workflows/build.yaml
vendored
61
.github/workflows/build.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user