From e7166d69660cf4f8d3af25da589b6ec73ab9d77f Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Thu, 16 Dec 2021 14:48:04 +0100 Subject: [PATCH 1/2] Add build for linux-arm7 --- .github/workflows/cd.yml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5c63109b..c08c4f82 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -116,6 +116,43 @@ jobs: path: dist name: dist + # ----- + linux-armv7: + # Config + name: release - linux-armv7 + runs-on: ubuntu-latest + env: + TARGET: armv7-unknown-linux-gnueabihf + ARCHIVE_NAME: wgpu-linux-armv7 + BINDGEN_EXTRA_CLANG_ARGS: -I/usr/arm-linux-gnueabihf/include/ + CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: /usr/bin/arm-linux-gnueabihf-gcc + steps: + # Common part (same for nearly each build) + - uses: actions/checkout@v2 + with: + submodules: true + - name: Set WGPU_NATIVE_VERSION + run: echo "WGPU_NATIVE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + shell: bash + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ env.TARGET }} + profile: minimal + override: true + # Build + - name: Install clang + run: sudo apt update && sudo apt install -y gcc-arm-linux-gnueabihf + - name: Build + run: make package + # Upload (same for each build) + - name: Upload + uses: actions/upload-artifact@v2 + with: + path: dist + name: dist + # ----- windows-x86_64: # Config @@ -276,7 +313,7 @@ jobs: # plus a file containing the commit sha. publish: name: Publish Github release - needs: [linux-x86_64, linux-i686, windows-x86_64, windows-i686, macos-x86_64, macos-arm64] + needs: [linux-x86_64, linux-i686, linux-armv7, windows-x86_64, windows-i686, macos-x86_64, macos-arm64] runs-on: ubuntu-18.04 if: success() && contains(github.ref, 'tags/v') steps: From 16ad7954a1cedc62c69eb5f1069f8bd4aaf65898 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Thu, 26 Jan 2023 11:16:53 +0100 Subject: [PATCH 2/2] Update action versions --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c08c4f82..cd21a4f8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -128,7 +128,7 @@ jobs: CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: /usr/bin/arm-linux-gnueabihf-gcc steps: # Common part (same for nearly each build) - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true - name: Set WGPU_NATIVE_VERSION @@ -148,7 +148,7 @@ jobs: run: make package # Upload (same for each build) - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: path: dist name: dist