Skip to content

Commit

Permalink
Add build for linux-arm7
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Dec 19, 2021
1 parent 9d962ef commit b43dfd8
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,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
Expand Down Expand Up @@ -274,7 +311,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:
Expand Down

0 comments on commit b43dfd8

Please sign in to comment.