Skip to content

0.8.0

0.8.0 #215

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/[email protected]
- name: Install llvm-18
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- 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
- uses: actions/checkout@v4
- uses: r7kamura/rust-problem-matchers@v1
- name: Build
env:
CC: clang-18
CXX: clang++-18
AR: llvm-ar-18
CFLAGS: "-flto=full -O3"
CXXFLAGS: "-flto=full -O3"
RUSTFLAGS: "-Zshare-generics=true -Clinker=clang-18 -Clinker-plugin-lto -Clink-arg=-fuse-ld=lld-18"
run: cargo build --release
- name: Test
env:
CC: clang-18
CXX: clang++-18
AR: llvm-ar-18
CFLAGS: "-flto=full -O3"
CXXFLAGS: "-flto=full -O3"
RUSTFLAGS: "-Zshare-generics=true -Clinker=clang-18 -Clinker-plugin-lto -Clink-arg=-fuse-ld=lld-18"
run: cargo test --release --no-fail-fast --features="leaky-api" -- --nocapture
- name: Install cargo-packager
run: (cargo install cargo-packager || true)
- name: Run cargo-packager
env:
CC: clang-18
CXX: clang++-18
AR: llvm-ar-18
CFLAGS: "-flto=full -O3"
CXXFLAGS: "-flto=full -O3"
RUSTFLAGS: "-Zshare-generics=true -Clinker=clang-18 -Clinker-plugin-lto -Clink-arg=-fuse-ld=lld-18"
run: cargo packager --release --formats appimage
- uses: actions/upload-artifact@v4
with:
name: linux_dynamic
path: target/release/moss