Skip to content

Commit

Permalink
Collapse workflows into one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Stupremee committed Feb 1, 2021
1 parent aa85975 commit e91f8c3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 114 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/windows.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (Windows)
name: CI

on: [push, pull_request]

Expand All @@ -7,24 +7,37 @@ jobs:
strategy:
fail-fast: false
matrix:
version:
- stable
- nightly
target:
toolchain:
- x86_64-pc-windows-msvc
- x86_64-pc-windows-gnu
- i686-pc-windows-msvc
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
version:
- stable
- nightly
include:
- toolchain: x86_64-pc-windows-msvc
os: windows-latest
- toolchain: x86_64-pc-windows-gnu
os: windows-latest
- toolchain: i686-pc-windows-msvc
os: windows-latest
- toolchain: x86_64-unknown-linux-gnu
os: ubuntu-latest
- toolchain: x86_64-apple-darwin
os: macOS-latest

name: ${{ matrix.version }} - ${{ matrix.target }}
runs-on: windows-latest
name: ${{ matrix.version }} - ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@master

- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.version }}-${{ matrix.target }}
toolchain: ${{ matrix.version }}-${{ matrix.toolchain }}
profile: minimal
override: true

Expand All @@ -35,19 +48,19 @@ jobs:

- name: check build
run: |
./ci.sh check
./ci.sh check
- name: tests (nightly)
if: matrix.version == 'nightly'
timeout-minutes: 40
run: |
./ci.sh test
./ci.sh test
- name: tests (stable)
if: matrix.version == 'stable'
timeout-minutes: 40
run: |
./ci.sh test
./ci.sh test
- name: Clear the cargo caches
run: |
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/linux.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/macos.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Crates.io](https://img.shields.io/crates/v/agnostik)](https://crates.io/crates/agnostik)
[![doc](https://img.shields.io/badge/rustdoc-agnostik-blue.svg)](https://docs.rs/agnostik)
[![CI](https://github.com/bastion-rs/bastion/workflows/CI/badge.svg)](https://github.com/bastion-rs/agnostik/actions)
[![CI](https://github.com/bastion-rs/agnostik/workflows/CI/badge.svg)](https://github.com/bastion-rs/agnostik/actions)

Agnostik is a layer between your application and the executor for your async stuff.
It lets you switch the executors smooth and easy without having to change your applications code.
Expand Down

0 comments on commit e91f8c3

Please sign in to comment.