Skip to content

Commit

Permalink
add macos & windows jobs (#34)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #34

Test Plan:
https://github.com/facebookincubator/reindeer/actions/runs/7504352196/job/20431177281?pr=34

 {F1285882094}

Differential Revision: D52732918

Pulled By: shayne-fletcher
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed Jan 12, 2024
1 parent 16265a7 commit 96eacc9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
9 changes: 9 additions & 0 deletions .github/actions/cargo_build_and_test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Cargo build and test
description: Use Cargo to build and test Reindeer
runs:
using: composite
steps:
- run: cargo build --locked
shell: bash
- run: cargo test
shell: bash
16 changes: 16 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Setup environment
description: Setup an environment for building and testing Reindeer
runs:
using: composite
steps:
- uses: SebRollen/toml-action@v1.0.2
id: read_rust_toolchain
with:
file: rust-toolchain
field: toolchain.channel
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ steps.read_rust_toolchain.outputs.value }}
- uses: Swatinem/rust-cache@v2
with:
prefix-key: reindeer-upload
17 changes: 0 additions & 17 deletions .github/actions/setup_linux_env/action.yml

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ name: Build and test
on:
push:
pull_request:
workflow_dispatch:
jobs:
linux-build-and-test:
runs-on: ubuntu-latest
build-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_linux_env
- uses: Swatinem/rust-cache@v2
- run: cargo build --locked
- run: cargo test

0 comments on commit 96eacc9

Please sign in to comment.