Files
clide/.gitea/workflows/build.yaml
Shaun Reed fdb4f0db0b
Some checks failed
Build / Build (pull_request) Failing after 10s
Build / Test (pull_request) Failing after 4s
Test named volume.
2026-02-21 16:53:03 -05:00

76 lines
1.6 KiB
YAML

name: Build
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
jobs:
Build:
name: Build
container:
image: ubuntu:24.04
volumes:
- build-artifacts:/workspace/artifacts
env:
QT_VERSION: 6.7.3
PATH: $HOME/.cargo/bin:$PATH
steps:
- uses: actions/checkout@v6
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install apt packages
run: |
apt update -y
apt install -y \
build-essential \
cmake \
curl \
libgl1-mesa-dev \
python3 \
python3-pip
- name: Install aqtinstall
run: |
python3 -m pip install aqtinstall
- name: Install Qt
run: |
aqt install-qt linux desktop $QT_VERSION linux_gcc_64
- name: Build clide
env:
QMAKE: ${{ env.CI_WORKSPACE }}/${{ env.QT_VERSION }}/gcc_64/bin/qmake
run: |
. "$HOME/.cargo/env"
cargo b --release
- name: Copy build artifacts
run: cp -r target/ /workspace/artifacts/
Test:
name: Test
container:
image: ubuntu:24.04
volumes:
- build-artifacts:/workspace/artifacts
steps:
- name: Copy build artifacts
run: cp -r /workspace/artifacts/target/ .
- name: Test libclide
run: |
. "$HOME/.cargo/env"
cargo test -p libclide
- name: Test clide
run: |
. "$HOME/.cargo/env"
cargo test