Zernit/.github/workflows/rustlang.yml

76 lines
1.7 KiB
YAML
Raw Normal View History

2020-02-10 16:36:34 +01:00
# Workflow for Rustlang
2020-02-10 17:56:08 +01:00
name: Rustlang
2020-02-10 16:36:34 +01:00
# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
paths:
2020-02-10 18:44:30 +01:00
- '*.\.rs'
2020-02-10 16:36:34 +01:00
jobs:
# Kernel specific builds
2020-02-10 18:41:28 +01:00
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Building..
run: cargo build
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Building..
run: cargo build
windows-build:
runs-on: windows-latest
2020-02-10 16:36:34 +01:00
steps:
- uses: actions/checkout@v2
2020-02-10 18:41:28 +01:00
- name: Building..
run: cargo build
2020-02-10 16:36:34 +01:00
# Docker builds
2020-02-10 18:41:28 +01:00
debian-build:
2020-02-10 16:36:34 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-02-10 18:41:28 +01:00
- uses: docker://debian/testing:latest
- name: Building..
run: cargo build
fedora-build:
2020-02-10 16:36:34 +01:00
runs-on: ubuntu-latest
steps:
2020-02-10 18:41:28 +01:00
- uses: actions/checkout@v2
2020-02-10 16:36:34 +01:00
- uses: docker://fedora/latest:latest
2020-02-10 18:41:28 +01:00
- name: Building..
run: cargo build
archlinux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://archlinux/latest:latest
- name: Building..
run: cargo build
gentoo-build:
runs-on: ubuntu-latest
steps:
2020-02-10 16:36:34 +01:00
- uses: actions/checkout@v2
2020-02-10 18:41:28 +01:00
- uses: docker://gentoo/stage3-amd64:latest
- name: Building..
run: cargo build
2020-02-10 16:36:34 +01:00
# Run tests
2020-02-10 18:41:28 +01:00
check:
runs-on: ubuntu-latest
2020-02-10 16:36:34 +01:00
steps:
- uses: actions/checkout@v2
2020-02-10 18:41:28 +01:00
- name: Testing..
run: cargo test
2020-02-10 16:36:34 +01:00
# Benchmarks
2020-02-10 18:41:28 +01:00
bench:
runs-on: ubuntu-latest
2020-02-10 16:36:34 +01:00
steps:
- uses: actions/checkout@v2
2020-02-10 18:41:28 +01:00
- name: Benchmarking..
run: cargo bench