Skip to content

Commit

Permalink
Merge #1
Browse files Browse the repository at this point in the history
1: Add self-test workflow and bors config r=Nemo157 a=Nemo157



Co-authored-by: Wim Looman <git@nemo157.com>
  • Loading branch information
bors[bot] and Nemo157 committed Sep 4, 2022
2 parents b0fa631 + bef0ff1 commit 3b49b19
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/features.yml
Expand Up @@ -20,6 +20,7 @@ jobs:

on:
workflow_call:
skip:
default: ''
type: string
inputs:
skip:
default: ''
type: string
7 changes: 6 additions & 1 deletion .github/workflows/minimal-versions.yml
Expand Up @@ -5,7 +5,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- uses: taiki-e/install-action@cargo-minimal-versions
with:
rust-version: nightly
- uses: hecrj/setup-rust-action@v1
- uses: taiki-e/install-action@v1
with:
tool: cargo-hack,cargo-minimal-versions
- uses: actions-rs/cargo@v1
with:
command: minimal-versions
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/platforms.yml
Expand Up @@ -8,11 +8,20 @@ jobs:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { os: windows-latest, target: i686-pc-windows-msvc }
- { os: windows-latest, target: x86_64-pc-windows-msvc }
fail-fast: false
runs-on: ${{ matrix.platform.os }}
uses: ./.github/workflows/test.yml
with:
targets: ${{ matrix.platform.target }}
args: --target ${{ matrix.platform.target }}
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
targets: ${{ matrix.platform.target }}
- run: sudo apt install -y gcc-multilib
if: ${{ matrix.platform.target == 'i686-unknown-linux-gnu' }}
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --locked --all-features --target ${{ matrix.platform.target }}

on:
workflow_call:
18 changes: 18 additions & 0 deletions .github/workflows/self-test.yml
@@ -0,0 +1,18 @@
jobs:
pull_request:
uses: ./.github/workflows/pull_request.yml
staging:
uses: ./.github/workflows/staging.yml
nightly:
uses: ./.github/workflows/nightly.yml
success:
needs: [pull_request, staging, nightly]
runs-on: ubuntu-latest
steps:
- run: true

on:
pull_request:
branches: [prīmum]
push:
branches: [staging, trying]
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Expand Up @@ -10,12 +10,10 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ inputs.toolchain }}
targets: ${{ inputs.targets }}
- uses: actions-rs/cargo@v1
with:
toolchain: ${{ inputs.toolchain }}
command: test
args: ${{ inputs.args }}
args: --workspace --locked --all-features ${{ inputs.args }}

on:
Expand All @@ -27,6 +25,3 @@ on:
args:
required: false
type: string
targets:
required: false
type: string
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
@@ -0,0 +1,7 @@
[package]
name = "self-test"
version = "0.1.0"
edition = "2021"
publish = false

[dependencies]
1 change: 1 addition & 0 deletions bors.toml
@@ -0,0 +1 @@
status = ["success"]
3 changes: 3 additions & 0 deletions src/main.rs
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit 3b49b19

Please sign in to comment.