freebsd #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: freebsd | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
VERSION: ${{ secrets.VERSION }} | |
CPU: ${{ matrix.target }} | |
OS: freebsd | |
VARIANT: ${{ matrix.suffix == 'yes' && format('-{0}', matrix.release) || ''}} | |
LINKFLAGS: ${{ matrix.linkflags }} | |
CLISP_LDFLAGS: ${{ matrix.clispldflags }} | |
CC: ${{ matrix.target == 'x86' && 'cc -m32' || 'cc' }} | |
ROSWELL_BRANCH: master | |
GH_USER: roswell | |
GH_REPO: clisp_head | |
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
fail-fast: false | |
matrix: | |
release: ['13.2', '13.3', '14.0', '14.1'] | |
target: [x86-64, x86, arm64] | |
suffix: [yes] | |
lisp: [sbcl-bin/2.4.8] | |
include: | |
- release: 13.3 | |
target: x86-64 | |
suffix: no | |
lisp: sbcl-bin/2.2.9 | |
- release: 13.3 | |
target: x86 | |
suffix: no | |
lisp: sbcl-bin/2.2.9 | |
- release: 13.3 | |
target: arm64 | |
suffix: no | |
lisp: sbcl-bin/2.3.0 | |
environment: SET_VERSION | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test on FreeBSD | |
uses: cross-platform-actions/[email protected] | |
with: | |
environment_variables: VERSION ARCH IMAGE SUFFIX LINKFLAGS GH_USER GH_REPO GITHUB_OAUTH_TOKEN | |
operating_system: freebsd | |
architecture: ${{ matrix.target == 'x86' && 'x86-64' || matrix.target }} | |
version: ${{ matrix.release }} | |
shell: bash | |
run: | | |
uname -a | |
freebsd-version | |
whoami | |
pwd | |
sudo env IGNORE_OSVERSION=yes pkg update -f | |
sudo pkg install -y bash roswell autoconf texinfo perl5 gmake gcc libffi git | |
ros install ${{ matrix.lisp }} | |
ros install snmsts/sn.github roswell/sbcl_bin | |
gmake latest-version compile archive; | |
env FILE=`ls *.bz2` gmake latest-version upload-archive; |