69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
name: Solaris Multi-Package Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- host: 172.16.11.20 # Solaris 2.6 i386
|
|
osver: "2.6"
|
|
arch: "i386"
|
|
# - host: 172.16.11.21 # Solaris 2.6 sparc
|
|
# osver: "2.6"
|
|
# arch: "sparc"
|
|
# Add more hosts/archs as needed
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
# --- Build binutils ---
|
|
- name: Build binutils
|
|
uses: appleboy/ssh-action@master
|
|
with:
|
|
host: ${{ matrix.host }}
|
|
username: root
|
|
key: ${{ secrets.BUILD_SSH_KEY }}
|
|
timeout: 2h # 2 hours
|
|
command_timeout: 4h
|
|
envs:
|
|
- PATH=/usr/dbpware/gnu:/usr/dbpware/bin:/usr/tgcware/gcc43/bin:/usr/tgcware/bin:/usr/local/bin:/usr/bin
|
|
- SUPATH=/usr/dbpware/gnu:/usr/dbpware/sbin:/usr/dbpware/bin:/usr/tgcware/gcc43/bin:/usr/tgcware/sbin:/usr/tgcware/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
|
script: |
|
|
set -e
|
|
|
|
# --- Set environment variables ---
|
|
export BUILDPKG_SCRIPTS=/usr/src/buildpkg/
|
|
export BUILDPKG_BASE=/usr/src/dbpware-for-solaris/
|
|
|
|
# --- Update sources ---
|
|
cd $BUILDPKG_SCRIPTS && git pull
|
|
cd $BUILDPKG_BASE && git pull
|
|
|
|
# --- Call host-side build script ---
|
|
$BUILDPKG_BASE/build-package.sh binutils
|
|
|
|
# --- Build gcc (future) ---
|
|
#- name: Build gcc
|
|
# uses: appleboy/ssh-action@master
|
|
# with:
|
|
# host: ${{ matrix.host }}
|
|
# username: root
|
|
# key: ${{ secrets.BUILD_SSH_KEY }}
|
|
# timeout: 3h # 3 hours
|
|
# script: |
|
|
# export BUILDPKG_SCRIPTS=/usr/src/buildpkg/
|
|
# export BUILDPKG_BASE=/usr/src/dbpware-for-solaris/
|
|
# cd $BUILDPKG_SCRIPTS && git pull
|
|
# cd $BUILDPKG_BASE && git pull
|
|
# $BUILDPKG_BASE/build-package.sh gcc
|
|
|
|
# Add more packages similarly, each in its own SSH step
|