Linux #860
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: linux | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
lisp: [sbcl-bin/2.0.0] | |
target: [x86-64, x86] | |
suffix: [''] | |
image: ['glibc2.19-sbcl2.0.0'] | |
docker-platform: [linux/amd64] | |
include: | |
- lisp: sbcl-bin/2.0.0 | |
target: x86-64 | |
image: 'glibc2.31-sbcl2.1.4' | |
docker-platform: 'linux/amd64' | |
suffix: -glibc2.31 | |
- lisp: sbcl-bin/2.0.0 | |
target: x86 | |
image: 'glibc2.31-sbcl2.1.4' | |
docker-platform: 'linux/amd64' | |
suffix: -glibc2.31 | |
- lisp: sbcl-bin/2.0.0 | |
target: x86-64 | |
image: 'musl1.2.2-sbcl2.0.5' | |
docker-platform: 'linux/amd64' | |
suffix: -musl | |
- lisp: sbcl-bin/2.0.0 | |
target: x86 | |
image: 'i386-musl1.2.2-sbcl2.0.5' | |
docker-platform: 'linux/386' | |
suffix: -musl | |
- lisp: sbcl-bin/2.0.0 | |
target: x86 | |
image: 'i386-musl1.1.24-sbcl2.0.5' | |
docker-platform: 'linux/386' | |
suffix: -musl1.1 | |
- lisp: sbcl-bin/2.0.0 | |
target: x86-64 | |
image: 'glibc2.10-sbcl2.0.5-gcc5.5' | |
docker-platform: 'linux/amd64' | |
suffix: -glibc2.10 | |
linkflags: -lrt | |
- lisp: sbcl-bin/2.0.0 | |
target: x86 | |
image: 'glibc2.10-sbcl2.0.5' | |
docker-platform: 'linux/amd64' | |
suffix: -glibc2.10 | |
linkflags: -lrt | |
environment: SET_VERSION | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setenv | |
run: | | |
echo "$HOME/.roswell/bin" >> $GITHUB_PATH | |
echo "ROSWELL_BRANCH=release" >> $GITHUB_ENV | |
- name: checkenv | |
run: | | |
uname -s | |
uname -m | |
echo $ROSWELL_INSTALL_DIR | |
echo $ROSWELL_BRANCH | |
- name: Install Roswell | |
env: | |
LISP: ${{ matrix.lisp }} | |
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
IMAGE: ${{ matrix.image }} | |
DOCKER_PLATFORM: ${{ matrix.docker-platform }} | |
DOCKER_IMAGE_SUFFIX: ${{ matrix.docker-image-suffix }} | |
run: | | |
curl -L https://raw.githubusercontent.com/roswell/roswell/release/scripts/install-for-ci.sh | sh | |
ros install snmsts/sn.github roswell/sbcl_bin | |
docker login docker.pkg.github.com -u snmsts -p $GITHUB_OAUTH_TOKEN; | |
make -f Build pull-docker | |
- name: build | |
env: | |
VERSION: ${{ secrets.VERSION }} | |
ARCH: ${{ matrix.target }} | |
IMAGE: ${{ matrix.image }} | |
SUFFIX: ${{ matrix.suffix }} | |
LINKFLAGS: ${{ matrix.linkflags }} | |
DOCKER_PLATFORM: ${{ matrix.docker-platform }} | |
DOCKER_IMAGE_SUFFIX: ${{ matrix.docker-image-suffix }} | |
run: | | |
ACTION=compile make -f Build latest-version docker | |
ACTION=archive make -f Build latest-version docker | |
- name: upload | |
env: | |
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ secrets.VERSION }} | |
ARCH: ${{ matrix.target }} | |
SUFFIX: ${{ matrix.suffix }} | |
run: | | |
make -f Build latest-version upload-archive; |