Compare commits

..

1 Commits

Author SHA1 Message Date
Will Jones
5d63b215e0 try manylinux again 2023-05-24 20:54:47 -07:00

View File

@@ -136,9 +136,7 @@ jobs:
- container: quay.io/pypa/manylinux2014_aarch64 - container: quay.io/pypa/manylinux2014_aarch64
arch: aarch64 arch: aarch64
protoc_arch: aarch_64 protoc_arch: aarch_64
container: container: ${{ matrix.settings.container }}
image: ${{ matrix.settings.container }}
options: --platform linux/amd64
defaults: defaults:
run: run:
shell: bash shell: bash
@@ -150,26 +148,24 @@ jobs:
run: | run: |
yum install -y openssl-devel unzip yum install -y openssl-devel unzip
# Install new enough protobuf (yum-provided is old) # Install new enough protobuf (yum-provided is old)
PB_REL=https://github.com/protocolbuffers/protobuf/releases PB_REL=https://github.com/protocolbuffers/protobuf/releases \
PB_VERSION=23.1 PB_VERSION=23.1 \
curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip && \
unzip protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip -d /usr/local unzip protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip -d /usr/local
- name: Install Node - uses: actions/setup-node@v3
run: | with:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash node-version: 18
source "$HOME"/.nvm/nvm.sh
nvm install 17 # latest that supports glibc 2.17
- name: Setup Rust - name: Setup Rust
run: | uses: ATiltedTree/setup-rust@v1
curl https://sh.rustup.rs -sSf | bash -s -- -y with:
echo "/root/.cargo/bin" >> $GITHUB_PATH rust-version: stable
- name: Install npm dependencies - name: Install npm dependencies
run: npm ci run: npm ci
- name: Build ${{ matrix.settings.libc }} library - name: Build ${{ matrix.settings.libc }} library
run: | run: |
BUILD_TARGET=${{ matrix.settings.arch }}-unknown-linux-${{ matrix.settings.libc }} export BUILD_TARGET=${{ matrix.settings.arch }}-unknown-linux-${{ matrix.settings.libc }}
rustup target add $BUILD_TARGET rustup target add $BUILD_TARGET
export RUSTFLAGS="-C target-feature=-crt-static" # for musl export RUSTFLAGS="-C target-feature=-crt-static"
npm run build-release -- --target $BUILD_TARGET npm run build-release -- --target $BUILD_TARGET
npm run pack-build -- --target $BUILD_TARGET npm run pack-build -- --target $BUILD_TARGET
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1