Skip to content

Commit

Permalink
wip: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ndusart committed Feb 2, 2024
1 parent 19a3ca3 commit 05d9f16
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
RUSTFLAGS: -Dwarnings
CARGO: cargo
TARGET_FLAGS:
FEATURES_FLAGS:
TARGET_DIR: ./target
CROSS_VERSION: v0.2.5
CLIPPY_RUST_VERSION: 1.75
Expand Down Expand Up @@ -39,34 +40,42 @@ jobs:
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-musl
features: vendored-openssl
- build: stable-x86
os: ubuntu-latest
rust: stable
target: i686-unknown-linux-gnu
features: vendored-openssl
- build: stable-aarch64
os: ubuntu-latest
rust: stable
target: aarch64-unknown-linux-gnu
features: vendored-openssl
- build: stable-arm-gnueabihf
os: ubuntu-latest
rust: stable
target: armv7-unknown-linux-gnueabihf
features: vendored-openssl
- build: stable-arm-musleabihf
os: ubuntu-latest
rust: stable
target: armv7-unknown-linux-musleabihf
features: vendored-openssl
- build: stable-arm-musleabi
os: ubuntu-latest
rust: stable
target: armv7-unknown-linux-musleabi
features: vendored-openssl
- build: stable-powerpc64
os: ubuntu-latest
rust: stable
target: powerpc64-unknown-linux-gnu
features: vendored-openssl
- build: stable-s390x
os: ubuntu-latest
rust: stable
target: s390x-unknown-linux-gnu
features: vendored-openssl
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -92,18 +101,22 @@ jobs:
echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
- name: Enable features
if: matrix.features != ''
run: echo "FEATURES_FLAGS=--features ${{ matrix.features }}" >> $GITHUB_ENV

- name: Show command used for Cargo
run: |
echo "cargo command is: ${{ env.CARGO }}"
echo "target flag is: ${{ env.TARGET_FLAGS }}"
echo "target dir is: ${{ env.TARGET_DIR }}"
- name: Build deltasync
run: ${{ env.CARGO }} build --verbose ${{ env.TARGET_FLAGS }}
run: ${{ env.CARGO }} build --verbose ${{ env.TARGET_FLAGS }} ${{ env.FEATURES_FLAGS }}

- name: Run tests
if: matrix.target == ''
run: ${{ env.CARGO }} test --verbose ${{ env.TARGET_FLAGS }}
run: ${{ env.CARGO }} test --verbose ${{ env.TARGET_FLAGS }} ${{ env.FEATURES_FLAGS }}

rustfmt:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 05d9f16

Please sign in to comment.