Skip to content

Commit

Permalink
build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
plule committed Jun 14, 2023
1 parent 91206f6 commit b2ffc06
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,24 @@ env:

jobs:
build:
strategy:
matrix:
os: ["windows-latest", "ubuntu-latest"]

runs-on: windows-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install packages (Linux)
if: runner.os == 'Linux'
#uses: awalsh128/[email protected]
#TODO(emilk) use upstream when https://github.com/awalsh128/cache-apt-pkgs-action/pull/90 is merged
uses: rerun-io/cache-apt-pkgs-action@59534850182063abf1b2c11bb3686722a12a8397
with:
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -45,6 +57,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install packages (Linux)
if: runner.os == 'Linux'
#uses: awalsh128/[email protected]
#TODO(emilk) use upstream when https://github.com/awalsh128/cache-apt-pkgs-action/pull/90 is merged
uses: rerun-io/cache-apt-pkgs-action@59534850182063abf1b2c11bb3686722a12a8397
with:
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true
- name: Build
run: cargo build --release
- name: Copy file to release
Expand Down

0 comments on commit b2ffc06

Please sign in to comment.