Skip to content

Commit

Permalink
set ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan committed Jan 31, 2024
1 parent a1d4405 commit f462cd2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-arm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish RPM Package
name: Build and Publish RPM Package ARM

on:
push:
Expand All @@ -10,7 +10,7 @@ concurrency:
jobs:
publish_apisix:
name: Build and Publish RPM Package
runs-on: buildjet-2vcpu-ubuntu-2204-arm
runs-on: ubuntu-20.04
timeout-minutes: 180
env:
VAR_COS_BUCKET_CI: ${{ secrets.VAR_COS_BUCKET_CI }}
Expand Down Expand Up @@ -58,7 +58,8 @@ jobs:
run: |
wget https://raw.githubusercontent.com/apache/apisix/${APISIX_TAG_VERSION}/.requirements
source .requirements
exit 1
# build apisix
make package type=rpm app=apisix openresty=apisix-runtime runtime_version=${APISIX_RUNTIME} checkout=${APISIX_TAG_VERSION} version=${APISIX_TAG_VERSION} image_base=centos image_tag=7
make package type=rpm app=apisix openresty=apisix-runtime runtime_version=${APISIX_RUNTIME} checkout=${APISIX_TAG_VERSION} version=${APISIX_TAG_VERSION} image_base=centos image_tag=8
Expand Down Expand Up @@ -204,3 +205,7 @@ jobs:
sudo -E ./utils/publish-rpm.sh repo_repodata_rebuild
sudo -E ./utils/publish-rpm.sh repo_upload
- name: Run debugger
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15
6 changes: 5 additions & 1 deletion utils/build-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ build_apisix_base_apk() {
build_apisix_runtime_rpm() {
if [[ $(rpm --eval '%{centos_ver}') == "7" ]]; then
yum -y install centos-release-scl
yum -y install devtoolset-9 patch wget git make sudo cpanminus
yum -y install devtoolset-9 patch wget git make sudo cpanminus curl
set +eu
source scl_source enable devtoolset-9
set -eu
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup install 1.69
rustup default 1.69
elif [[ $(rpm --eval '%{centos_ver}') == "8" ]]; then
dnf install -y gcc-toolset-9-toolchain patch wget git make sudo cpanminus
dnf install -y yum-utils
Expand Down

0 comments on commit f462cd2

Please sign in to comment.