Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare github actions CI for use by homu. #472

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,34 @@ name: Rust

on:
push:
branches: [ master ]
branches: ["**"]
jdm marked this conversation as resolved.
Show resolved Hide resolved
pull_request:
branches: [ master ]
branches: ["**"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: macos-11.0

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11.0, macos-10.15]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_result:
name: homu build finished
runs-on: ubuntu-latest
needs:
- "build"
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"