Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
add arm64 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirherobrine23 committed Dec 11, 2022
1 parent 2a5a643 commit 8b84e24
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/gendocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Deploy bds core wiki
on:
push:
branches:
- main
- main
paths:
- "src/**/*"
- "tests/**/*"
- "package*.json"

permissions:
contents: read
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/php_buid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
fi
- name: "Building php bin"
continue-on-error: true
timeout-minutes: 40
run: |
./compile.sh -t android-aarch64 -x -f -g -j$(nproc)
# Compress files
Expand All @@ -74,7 +76,8 @@ jobs:
matrix:
target:
- ubuntu-latest
name: "Linux ${{ matrix.target }}"
- arm64
name: "Linux - ${{ matrix.target }}"
runs-on: ${{ matrix.target }}
steps:
- name: Clone Repository
Expand All @@ -86,13 +89,14 @@ jobs:
- name: Install tools and dependencies
run: |
sudo apt-get update
sudo apt-get install make autoconf automake libtool libtool-bin m4 wget libc-bin gzip bzip2 bison g++ git re2c zip tar
sudo apt-get install -y cmake pkg-config make autoconf automake libtool libtool-bin m4 wget libc-bin gzip bzip2 bison g++ git re2c zip tar
- name: Compile PHP
continue-on-error: true
timeout-minutes: 40
run: |
set -ex
trap "exit 1" ERR
./compile.sh -t linux64 -j 4 -f -g
./compile.sh -j 4 -f -g -s
# Compress files
cd bin/php*/
Expand Down Expand Up @@ -124,9 +128,13 @@ jobs:
- name: Install dependecies
run: brew install libtool autoconf automake pkg-config bison re2c

- name: "Building php to MacOS"
- name: "Building php"
continue-on-error: true
timeout-minutes: 40
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
set -ex
trap "exit 1" ERR
./compile.sh -j4 -f -g || (cat *.log && exit 1)
- name: Create tarballs
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
- uses: actions/setup-node@v3
name: Setup node.js
with:
registry-url: https://registry.npmjs.org/
node-version: latest

- run: sudo npm install -g ts-node typescript
name: Install typescript and ts-node

- name: Edit version
shell: node {0}
run: |
Expand All @@ -38,24 +36,21 @@ jobs:
package.version = package.version.replace(/[A-Za-z_\/]+/, "");
fs.writeFileSync(packagePath, JSON.stringify(package, null, 2));
# Add version to environment variables
- name: Add version to environment variables
run: |
cat package.json | jq -r '.version' > /tmp/version.txt
echo "PACKAGE_VERSION=$(cat /tmp/version.txt)" >> $GITHUB_ENV
# Install depencides and build
- run: npm ci

# Build
- run: npm run build
- run: npm ci && npm run build

# Publish
- run: npm publish --tag ${{ github.event.release.prerelease && 'next' || 'latest' }}
name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ORG_TOKEN }}

# Add version to environment variables
- name: Add version to environment variables
run: |
cat package.json | jq -r '.version' > /tmp/version.txt
echo "PACKAGE_VERSION=$(cat /tmp/version.txt)" >> $GITHUB_ENV
# Create pull request to update version in main branch
- uses: peter-evans/create-pull-request@v4
name: Create Pull Request
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths:
- "src/**/*"
- "tests/**/*"
- "package*.json"
pull_request:
branches:
- main
Expand Down

0 comments on commit 8b84e24

Please sign in to comment.