separate build job per OS

pull/152/head
Sunshine 4 years ago
parent 3f0ced0143
commit 93dd9d4ed4
No known key found for this signature in database
GPG Key ID: B80CA68703CD8AB1

@ -0,0 +1,22 @@
name: GNU/Linux
on:
push:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
rust:
- stable
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Build
run: cargo build --all --locked --verbose

@ -0,0 +1,22 @@
name: macOS
on:
push:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os:
- macos-latest
rust:
- stable
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Build
run: cargo build --all --locked --verbose

@ -1,4 +1,4 @@
name: Build
name: Windows
on:
push:
@ -10,8 +10,6 @@ jobs:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- stable

@ -12,9 +12,7 @@ jobs:
- run: git config --global core.autocrlf false
- name: Checkout the repository
uses: actions/checkout@master
- name: Build the executable
run: cargo build --all --locked
- name: Perform local installation
- name: Build and install the executable
run: cargo install --force --locked --path .
- uses: Shopify/upload-to-release@1.0.0
with:

@ -1,4 +1,6 @@
[![GitHub Actions Build Status](https://github.com/Y2Z/monolith/workflows/Build/badge.svg)](https://github.com/Y2Z/monolith/actions?query=workflow%3ABuild)
[![GitHub Actions Build Status for GNU/Linux](https://github.com/Y2Z/monolith/workflows/GNU%2FLinux/badge.svg)](https://github.com/Y2Z/monolith/actions?query=workflow%3AGNU%2FLinux)
[![GitHub Actions Build Status for macOS](https://github.com/Y2Z/monolith/workflows/macOS/badge.svg)](https://github.com/Y2Z/monolith/actions?query=workflow%3AmacOS)
[![GitHub Actions Build Status for Windows](https://github.com/Y2Z/monolith/workflows/Windows/badge.svg)](https://github.com/Y2Z/monolith/actions?query=workflow%3AWindows)
```
___ ___________ __________ ___________________ ___

Loading…
Cancel
Save