From fe257057ce7cf5d1429bc131e7aae5676a889222 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Wed, 13 Nov 2024 12:28:37 +0100 Subject: [PATCH] wip --- .github/workflows/bindings.yml | 42 +++++++++++++++++++ .../cont_integration.yml | 0 .../kotlin.yml | 0 .../wheels.yml | 0 4 files changed, 42 insertions(+) create mode 100644 .github/workflows/bindings.yml rename .github/{workflows => workflows_commented}/cont_integration.yml (100%) rename .github/{workflows => workflows_commented}/kotlin.yml (100%) rename .github/{workflows => workflows_commented}/wheels.yml (100%) diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml new file mode 100644 index 00000000..2a90c28a --- /dev/null +++ b/.github/workflows/bindings.yml @@ -0,0 +1,42 @@ +on: + push: + branches: + - master + pull_request: {} + +name: CI + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-22.04] + target: [aarch64-unknown-linux-gnu] + include: + - os: ubuntu-22.04 + target: aarch64-unknown-linux-gnu + - os: ubuntu-22.04 + target: x86_64-unknown-linux-gnu + - os: macos-14 + target: aarch64-apple-darwin + - os: macos-14 + target: x86_64-apple-darwin + - os: windows-2022 + target: x86_64-pc-windows-msvc + - os: windows-2022 + target: i686-pc-windows-msvc + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - run: rm rust-toolchain.toml + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + - run: cargo build --release --target ${{ matrix.target }} -p lwk_bindings + - name: Archive release + uses: actions/upload-artifact@v4 + with: + name: bindings-${{ matrix.target }} + path: lib/target/${{ matrix.target }}/release/lwk.* diff --git a/.github/workflows/cont_integration.yml b/.github/workflows_commented/cont_integration.yml similarity index 100% rename from .github/workflows/cont_integration.yml rename to .github/workflows_commented/cont_integration.yml diff --git a/.github/workflows/kotlin.yml b/.github/workflows_commented/kotlin.yml similarity index 100% rename from .github/workflows/kotlin.yml rename to .github/workflows_commented/kotlin.yml diff --git a/.github/workflows/wheels.yml b/.github/workflows_commented/wheels.yml similarity index 100% rename from .github/workflows/wheels.yml rename to .github/workflows_commented/wheels.yml