Skip to content

chore: fix 64bit off_t for test workflows #23

chore: fix 64bit off_t for test workflows

chore: fix 64bit off_t for test workflows #23

Workflow file for this run

on:
push:
branches: [master]
paths:
- 'index.js'
- 'package.json'
- 'package-lock.json'
- 'action.yml'
- 'node_modules/**'
- '.github/workflows/test.yml'
name: Test this action
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
build: [false, true]
variant: [richfelker/musl-cross-make, userdocs/qbt-musl-cross-make]
env:
REPO: ${{ matrix.variant }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download aarch64 cross compiler
uses: ./
id: compiler
with:
target: aarch64-linux-musl
variant: ${{ matrix.variant }}
build: ${{ matrix.build }}
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y make autoconf automake libtool-bin m4 wget gzip bzip2 bison g++ re2c
- name: Build project
id: build
env:
CFLAGS: -D_LARGEFILE64_SOURCE
CXXFLAGS: -D_LARGEFILE64_SOURCE
run: |
echo "source_escaped=${REPO%%/*}_${REPO##*/}" >> $GITHUB_OUTPUT
echo ${{ steps.compiler.outputs.path }}
ls ${{ steps.compiler.outputs.path }}
wget https://raw.githubusercontent.com/pmmp/PHP-Binaries/master/compile.sh
chmod a+x compile.sh
trap "exit 1" ERR
./compile.sh -t android-aarch64 -x -j4 -P5 -s
- name: Create tarball
run: |
tar -czf ./PHP-Linux-aarch64-PM5.tar.gz bin
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Linux-PM5-${{ steps.build.outputs.source_escaped }}-${{ matrix.build }}
path: |
./PHP-Linux-aarch64-PM*.tar.gz
install.log
compile.sh
if-no-files-found: error