Skip to content

Commit

Permalink
Merge pull request #209 from louis-e/main
Browse files Browse the repository at this point in the history
Bring elevation-wip up to date to main code base
  • Loading branch information
louis-e authored Jan 6, 2025
2 parents c0778c2 + 85f3e55 commit 66819a5
Show file tree
Hide file tree
Showing 12 changed files with 652 additions and 247 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,37 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }}
targets: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }}
components: clippy

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository universe
echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install -y libgtk-3-dev build-essential pkg-config libglib2.0-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
- name: Check formatting
run: cargo fmt -- --check

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
uses: actions/checkout@v3

- name: Set up Rust for Windows
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-msvc
targets: x86_64-pc-windows-msvc

- name: Install dependencies
run: cargo fetch
run: cargo fetch --locked

- name: Build
run: cargo build --release
run: cargo build --frozen --release

- name: Upload artifact (Windows)
uses: actions/upload-artifact@v3
Expand Down
Loading

0 comments on commit 66819a5

Please sign in to comment.