mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
CI: stop building for ARM and Windows MinGW (#82)
This commit is contained in:
parent
a96eb53625
commit
f46ff3c26e
166
.github/workflows/build.yml
vendored
166
.github/workflows/build.yml
vendored
@ -4,37 +4,37 @@ name: build-and-test
|
||||
|
||||
|
||||
jobs:
|
||||
aarch64-glibc:
|
||||
name: Ubuntu 18.04 (for ARMv8 - glibc)
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: aarch64-unknown-linux-gnu
|
||||
override: true
|
||||
# aarch64-glibc:
|
||||
# name: Ubuntu 18.04 (for ARMv8 - glibc)
|
||||
# runs-on: ubuntu-18.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# target: aarch64-unknown-linux-gnu
|
||||
# override: true
|
||||
|
||||
- name: Install binutils-arm-none-eabi
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install binutils-aarch64-linux-gnu
|
||||
# - name: Install binutils-arm-none-eabi
|
||||
# run: |
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install binutils-aarch64-linux-gnu
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: build
|
||||
args: --target=aarch64-unknown-linux-gnu
|
||||
# - uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# use-cross: true
|
||||
# command: build
|
||||
# args: --target=aarch64-unknown-linux-gnu
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: test
|
||||
args: --target=aarch64-unknown-linux-gnu
|
||||
# - name: Run cargo test
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# use-cross: true
|
||||
# command: test
|
||||
# args: --target=aarch64-unknown-linux-gnu
|
||||
|
||||
- name: Strip binary
|
||||
run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch
|
||||
# - name: Strip binary
|
||||
# run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch
|
||||
|
||||
# - name: Upload binary
|
||||
# uses: actions/upload-artifact@v2
|
||||
@ -43,38 +43,38 @@ jobs:
|
||||
# path: target/aarch64-unknown-linux-gnu/release/ouch
|
||||
|
||||
|
||||
armv7-glibc:
|
||||
name: Ubuntu 18.04 (for ARMv7 - glibc)
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
override: true
|
||||
# armv7-glibc:
|
||||
# name: Ubuntu 18.04 (for ARMv7 - glibc)
|
||||
# continue-on-error: true
|
||||
# runs-on: ubuntu-18.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# target: armv7-unknown-linux-gnueabihf
|
||||
# override: true
|
||||
|
||||
- name: Install binutils-arm-none-eabi
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install binutils-arm-none-eabi
|
||||
# - name: Install binutils-arm-none-eabi
|
||||
# run: |
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install binutils-arm-none-eabi
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: build
|
||||
args: --target=armv7-unknown-linux-gnueabihf
|
||||
# - uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# use-cross: true
|
||||
# command: build
|
||||
# args: --target=armv7-unknown-linux-gnueabihf
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: test
|
||||
args: --target=armv7-unknown-linux-gnueabihf
|
||||
# - name: Run cargo test
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# use-cross: true
|
||||
# command: test
|
||||
# args: --target=armv7-unknown-linux-gnueabihf
|
||||
|
||||
- name: Strip binary
|
||||
run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch
|
||||
# - name: Strip binary
|
||||
# run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch
|
||||
|
||||
# - name: Upload binary
|
||||
# uses: actions/upload-artifact@v2
|
||||
@ -155,8 +155,8 @@ jobs:
|
||||
with:
|
||||
command: test
|
||||
|
||||
- name: Strip binary
|
||||
run: strip target/release/ouch
|
||||
# - name: Strip binary
|
||||
# run: strip target/release/ouch
|
||||
|
||||
# - name: Upload binary
|
||||
# uses: actions/upload-artifact@v2
|
||||
@ -239,35 +239,35 @@ jobs:
|
||||
path: target\release\ouch.exe
|
||||
|
||||
|
||||
windows-mingw:
|
||||
name: Windows Server (MinGW)
|
||||
runs-on: windows-2019
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
# windows-mingw:
|
||||
# name: Windows Server (MinGW)
|
||||
# runs-on: windows-2019
|
||||
# strategy:
|
||||
# matrix:
|
||||
# rust:
|
||||
# - stable
|
||||
# steps:
|
||||
# - name: Checkout sources
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-pc-windows-gnu
|
||||
override: true
|
||||
# - name: Install toolchain
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# target: x86_64-pc-windows-gnu
|
||||
# override: true
|
||||
|
||||
- name: Run cargo build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --target x86_64-pc-windows-gnu
|
||||
# - name: Run cargo build
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: build
|
||||
# args: --target x86_64-pc-windows-gnu
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --target x86_64-pc-windows-gnu
|
||||
# - name: Run cargo test
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: test
|
||||
# args: --target x86_64-pc-windows-gnu
|
||||
|
||||
# - name: Upload binary
|
||||
# uses: actions/upload-artifact@v2
|
||||
|
@ -18,7 +18,7 @@ use utils::*;
|
||||
fn sanity_check_through_mime() {
|
||||
// Somehow this test causes test failures when run in parallel with test_each_format
|
||||
// This is a temporary hack that should allow the tests to pass while this bug isn't solved.
|
||||
std::thread::sleep(Duration::from_millis(100));
|
||||
std::thread::sleep(Duration::from_secs(2));
|
||||
|
||||
let temp_dir = tempfile::tempdir().expect("to build a temporary directory");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user