Skip to content

Adds github action with aws codebuild #6

Adds github action with aws codebuild

Adds github action with aws codebuild #6

Workflow file for this run

name: Build
on:
pull_request: ~
jobs:
build:
strategy:
matrix:
build_image: ["ubuntu-7.0-medium", "arm-3.0-small"]
alpine: [ "3.19" ]
php: [ "8.3" ]
runs-on: codebuild-php-alpine-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.build_image }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Generate keys
run: make keys
- name: Build
run: |
ARCH=$(uname -m)
echo "Building alpine ${{ matrix.alpine }} php ${{ matrix.php }} arch amd64"
make build ARCH=${ARCH} ALPINE=${{ matrix.alpine }} PHP=${{ matrix.php }}
- uses: actions/upload-artifact@v4
with:
name: keys
path: build/.abuild/skpr.rsa.pub
retention-days: 1
- uses: actions/upload-artifact@v4
with:
name: packages
path: _output/${{ matrix.alpine }}/${{ matrix.php }}
retention-days: 1