mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-03-17 04:02:46 -04:00
Add workflow for building arm64 binaries (#710)
Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
This commit is contained in:
33
.github/workflows/c-cpp.yml
vendored
33
.github/workflows/c-cpp.yml
vendored
@@ -49,3 +49,36 @@ jobs:
|
||||
git config --global user.name "Alex Hultman"
|
||||
git commit -a -m "[GitHub Actions] Updated ${{ matrix.os }} binaries" || true
|
||||
git push "https://unetworkingab:${{ secrets.SECRET }}@github.com/uNetworking/uWebSockets.js" binaries
|
||||
|
||||
build-arm:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build on arm64
|
||||
steps:
|
||||
- name: Clone
|
||||
run: git clone --recursive https://github.com/uNetworking/uWebSockets.js.git
|
||||
- uses: uraimo/run-on-arch-action@v2.1.1
|
||||
name: Compile binaries
|
||||
with:
|
||||
arch: aarch64
|
||||
distro: ubuntu20.04
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/uWebSockets.js:/repository"
|
||||
install: |
|
||||
apt-get update -q -y
|
||||
apt-get install -q -y make clang g++-aarch64-linux-gnu curl cmake golang
|
||||
run: |
|
||||
cd /repository
|
||||
make
|
||||
- name: Update binaries
|
||||
run: |
|
||||
cd uWebSockets.js
|
||||
git fetch origin binaries:binaries
|
||||
git checkout binaries
|
||||
cp dist/*.node .
|
||||
git status
|
||||
git rev-parse master > source_commit
|
||||
git checkout master docs/index.d.ts && mv docs/index.d.ts .
|
||||
git config --global user.email "alexhultman@gmail.com"
|
||||
git config --global user.name "Alex Hultman"
|
||||
git commit -a -m "[GitHub Actions] Updated linux-arm64 binaries" || true
|
||||
git push "https://unetworkingab:${{ secrets.SECRET }}@github.com/uNetworking/uWebSockets.js" binaries
|
||||
|
||||
Reference in New Issue
Block a user