Merge pull request #2013 from sylvestre/make-github

GitHub action - Test the build target of the Makefile
This commit is contained in:
Sylvestre Ledru 2021-04-03 09:26:18 +02:00 committed by GitHub
commit 949673948d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View file

@ -181,6 +181,28 @@ jobs:
cd tmp/busybox-*/testsuite
S=$(bindir=$bindir ./runtest) && printf "%s\n" "$S" || { printf "%s\n" "$S" | grep "FAIL:" | sed -e "s/FAIL: /::warning ::Test failure:/g" ; }
makefile_build:
name: Test the build target of the Makefile
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
matrix:
job:
- { os: ubuntu-latest }
steps:
- uses: actions/checkout@v1
- name: Install `rust` toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal # minimal component installation (ie, no documentation)
- name: "Run make build"
shell: bash
run: |
sudo apt-get -y update ; sudo apt-get -y install python3-sphinx;
make build
build:
name: Build
runs-on: ${{ matrix.job.os }}

2
Cargo.lock generated
View file

@ -1668,7 +1668,7 @@ dependencies = [
name = "uu_csplit"
version = "0.0.4"
dependencies = [
"getopts",
"clap",
"glob 0.2.11",
"regex",
"thiserror",

View file

@ -7,7 +7,7 @@
// spell-checker:ignore (ToDO) filts, minidx, minkey paridx
use std::iter::{Chain, Cycle, Copied};
use std::iter::{Chain, Copied, Cycle};
use std::slice::Iter;
/// A lazy Sieve of Eratosthenes.