Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build for linux-arm7 #148

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v3
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@v3
with:
path: dist
name: dist

# -----
windows-x86_64:
# Config
Expand Down Expand Up @@ -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:
Expand Down