Skip to content

Commit

Permalink
Install docker compose to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofl committed Jan 2, 2025
1 parent 04bb246 commit 30202ad
Showing 1 changed file with 35 additions and 30 deletions.
65 changes: 35 additions & 30 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,39 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
# build:
# runs-on: ubuntu-latest

strategy:
matrix:
target:
- "x86_64-unknown-linux-gnu"
- "x86_64-pc-windows-gnu"
- "aarch64-unknown-linux-gnu"
- "armv7-unknown-linux-gnueabihf"
- "arm-unknown-linux-gnueabihf"
# strategy:
# matrix:
# target:
# - "x86_64-unknown-linux-gnu"
# - "x86_64-pc-windows-gnu"
# - "aarch64-unknown-linux-gnu"
# - "armv7-unknown-linux-gnueabihf"
# - "arm-unknown-linux-gnueabihf"

steps:
- name: Checkout
uses: actions/checkout@v3
# steps:
# - name: Checkout
# uses: actions/checkout@v3

- name: Setup for Linux x86_64
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
# - name: Setup for Linux x86_64
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable

- name: Install extra packages
run: |
cargo install cross --git https://github.com/cross-rs/cross
# - name: Install extra packages
# run: |
# cargo install cross --git https://github.com/cross-rs/cross

- name: Build target ${{ matrix.target }}
continue-on-error: false
run: cross build --release --target ${{ matrix.target }}
# - name: Build target ${{ matrix.target }}
# continue-on-error: false
# run: cross build --release --target ${{ matrix.target }}


test:
needs: build
# needs: build
runs-on: ubuntu-latest

steps:
Expand All @@ -57,12 +57,17 @@ jobs:
profile: minimal
toolchain: stable

- name: Install extra packages
# - name: Install extra packages
# run: |
# cargo install cross --git https://github.com/cross-rs/cross

- name: Install Dependencies
run: |
cargo install cross --git https://github.com/cross-rs/cross
sudo apt-get update
sudo apt-get install -y docker-compose nasm build-essential clang wget tftp-hpa curl
- name: Test on target
- name: Test
continue-on-error: false
run: |
cross build --release
cross test --release
cargo build
cargo test -- --nocapture

0 comments on commit 30202ad

Please sign in to comment.