Skip to content

Commit

Permalink
Merge branch 'main' into feat/use-system-fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Jun 16, 2024
2 parents c9a795b + 4053c1d commit 44cd057
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build example

on:
workflow_dispatch:
inputs:
os:
description: "OS"
required: true
type: choice
options:
- macos-latest
- ubuntu-latest
- windows-latest
example_name:
description: "Example name"
required: true

jobs:
build:
runs-on: ${{ matrix.os }}
if: ${{ always() }}
strategy:
matrix:
os: ["${{ inputs.os }}"]
fail-fast: true

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "8"

- name: Install linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update && sudo apt install build-essential libssl-dev pkg-config libglib2.0-dev libgtk-3-dev
- name: Build example
run: cargo build --example ${{inputs.example_name}} --release

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
path: target/release/examples/*

0 comments on commit 44cd057

Please sign in to comment.