CI: stop building for ARM and Windows MinGW

This commit is contained in:
Vinícius Rodrigues Miguel 2021-10-07 21:03:52 -03:00
parent a96eb53625
commit 7b04e2bf71
2 changed files with 84 additions and 84 deletions

View File

@ -4,37 +4,37 @@ name: build-and-test
jobs: jobs:
aarch64-glibc: # aarch64-glibc:
name: Ubuntu 18.04 (for ARMv8 - glibc) # name: Ubuntu 18.04 (for ARMv8 - glibc)
runs-on: ubuntu-18.04 # runs-on: ubuntu-18.04
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 # - uses: actions-rs/toolchain@v1
with: # with:
toolchain: stable # toolchain: stable
target: aarch64-unknown-linux-gnu # target: aarch64-unknown-linux-gnu
override: true # override: true
- name: Install binutils-arm-none-eabi # - name: Install binutils-arm-none-eabi
run: | # run: |
sudo apt-get update # sudo apt-get update
sudo apt-get install binutils-aarch64-linux-gnu # sudo apt-get install binutils-aarch64-linux-gnu
- uses: actions-rs/cargo@v1 # - uses: actions-rs/cargo@v1
with: # with:
use-cross: true # use-cross: true
command: build # command: build
args: --target=aarch64-unknown-linux-gnu # args: --target=aarch64-unknown-linux-gnu
- name: Run cargo test # - name: Run cargo test
uses: actions-rs/cargo@v1 # uses: actions-rs/cargo@v1
with: # with:
use-cross: true # use-cross: true
command: test # command: test
args: --target=aarch64-unknown-linux-gnu # args: --target=aarch64-unknown-linux-gnu
- name: Strip binary # - name: Strip binary
run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch # run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch
# - name: Upload binary # - name: Upload binary
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
@ -43,38 +43,38 @@ jobs:
# path: target/aarch64-unknown-linux-gnu/release/ouch # path: target/aarch64-unknown-linux-gnu/release/ouch
armv7-glibc: # armv7-glibc:
name: Ubuntu 18.04 (for ARMv7 - glibc) # name: Ubuntu 18.04 (for ARMv7 - glibc)
continue-on-error: true # continue-on-error: true
runs-on: ubuntu-18.04 # runs-on: ubuntu-18.04
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 # - uses: actions-rs/toolchain@v1
with: # with:
toolchain: stable # toolchain: stable
target: armv7-unknown-linux-gnueabihf # target: armv7-unknown-linux-gnueabihf
override: true # override: true
- name: Install binutils-arm-none-eabi # - name: Install binutils-arm-none-eabi
run: | # run: |
sudo apt-get update # sudo apt-get update
sudo apt-get install binutils-arm-none-eabi # sudo apt-get install binutils-arm-none-eabi
- uses: actions-rs/cargo@v1 # - uses: actions-rs/cargo@v1
with: # with:
use-cross: true # use-cross: true
command: build # command: build
args: --target=armv7-unknown-linux-gnueabihf # args: --target=armv7-unknown-linux-gnueabihf
- name: Run cargo test # - name: Run cargo test
uses: actions-rs/cargo@v1 # uses: actions-rs/cargo@v1
with: # with:
use-cross: true # use-cross: true
command: test # command: test
args: --target=armv7-unknown-linux-gnueabihf # args: --target=armv7-unknown-linux-gnueabihf
- name: Strip binary # - name: Strip binary
run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch # run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch
# - name: Upload binary # - name: Upload binary
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
@ -155,8 +155,8 @@ jobs:
with: with:
command: test command: test
- name: Strip binary # - name: Strip binary
run: strip target/release/ouch # run: strip target/release/ouch
# - name: Upload binary # - name: Upload binary
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
@ -239,35 +239,35 @@ jobs:
path: target\release\ouch.exe path: target\release\ouch.exe
windows-mingw: # windows-mingw:
name: Windows Server (MinGW) # name: Windows Server (MinGW)
runs-on: windows-2019 # runs-on: windows-2019
strategy: # strategy:
matrix: # matrix:
rust: # rust:
- stable # - stable
steps: # steps:
- name: Checkout sources # - name: Checkout sources
uses: actions/checkout@v2 # uses: actions/checkout@v2
- name: Install toolchain # - name: Install toolchain
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
toolchain: stable # toolchain: stable
target: x86_64-pc-windows-gnu # target: x86_64-pc-windows-gnu
override: true # override: true
- name: Run cargo build # - name: Run cargo build
uses: actions-rs/cargo@v1 # uses: actions-rs/cargo@v1
with: # with:
command: build # command: build
args: --target x86_64-pc-windows-gnu # args: --target x86_64-pc-windows-gnu
- name: Run cargo test # - name: Run cargo test
uses: actions-rs/cargo@v1 # uses: actions-rs/cargo@v1
with: # with:
command: test # command: test
args: --target x86_64-pc-windows-gnu # args: --target x86_64-pc-windows-gnu
# - name: Upload binary # - name: Upload binary
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2

View File

@ -18,7 +18,7 @@ use utils::*;
fn sanity_check_through_mime() { fn sanity_check_through_mime() {
// Somehow this test causes test failures when run in parallel with test_each_format // 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. // 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"); let temp_dir = tempfile::tempdir().expect("to build a temporary directory");