mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-08 00:05:00 +00:00
Add self hosted runner to ci.yml (#955)
* Add self hosted runner to ci.yml * Remove libgtk install * Use mold as the linker * Make build logs non verbose * Fix crash on failure to get GLOBAL_PLATFORM * Copy the platform enum before calling unwrap_or_default Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
parent
5619d44300
commit
b030a1860b
3 changed files with 7 additions and 10 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -12,7 +12,7 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -27,9 +27,6 @@ jobs:
|
|||
cd frontend
|
||||
npm ci
|
||||
|
||||
- name: 🔧 Install libgtk
|
||||
run: sudo apt update -y && sudo apt install -y libgtk-3-dev libssl-dev build-essential curl wget libayatana-appindicator3-dev librsvg2-dev libsoup2.4-dev libjavascriptcoregtk-4.0-dev libwebkit2gtk-4.0-dev
|
||||
|
||||
- name: 🔼 Update Rust to latest stable
|
||||
run: |
|
||||
rustc --version
|
||||
|
@ -53,15 +50,15 @@ jobs:
|
|||
|
||||
- name: 🔬 Check Rust formatting
|
||||
run: |
|
||||
cargo fmt --all -- --check
|
||||
mold -run cargo fmt --all -- --check
|
||||
|
||||
- name: 🦀 Build Rust code
|
||||
run: |
|
||||
cargo build --verbose
|
||||
mold -run cargo build
|
||||
|
||||
- name: 🧪 Run Rust tests
|
||||
run: |
|
||||
cargo test --verbose
|
||||
mold -run cargo test
|
||||
|
||||
cargo-deny:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue