Skip to content

0.8.0

0.8.0 #225

Workflow file for this run

name: Build-Linux-Dynamic
on:
push:
branches:
- release
tags:
- "*"
pull_request:
branches:
- release
- master
workflow_dispatch:
jobs:
build:
name: Rust project
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CARGO_INCREMENTAL: 0
steps:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
- name: Install llvm-19
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install libarchive-dev libgtk-3-dev webkit2gtk-4.1 libgtksourceview-3.0-dev libayatana-appindicator3-dev
- name: Install cargo-packager
run: (cargo install cargo-packager || true)
- uses: actions/checkout@v4
- uses: r7kamura/rust-problem-matchers@v1
- name: Set build specific env vars
run: |
echo CC=clang-19 >> $GITHUB_ENV
echo CXX=clang++-19 >> $GITHUB_ENV
echo AR=llvm-ar-19 >> $GITHUB_ENV
echo CFLAGS='-flto=full -O3' >> $GITHUB_ENV
echo CXXFLAGS='-flto=full -O3' >> $GITHUB_ENV
echo RUSTFLAGS="-Zshare-generics=true -Clinker=clang-19 -Clinker-plugin-lto -Clink-arg=-fuse-ld=lld-19" >> $GITHUB_ENV
- name: Build
run: cargo build --release
- name: Test
run: cargo test --release --no-fail-fast --features="leaky-api" -- --nocapture
- name: Run cargo-packager
run: cargo packager --release --formats appimage
- uses: actions/upload-artifact@v4
with:
name: linux_dynamic
path: target/release/moss