Skip to content

Build in Docker Containers #2

Build in Docker Containers

Build in Docker Containers #2

Workflow file for this run

# .github/workflows/docker.yaml
name: Building in Containers
on:
workflow_dispatch:
push:
branches: [ "test" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
target: [
"node:10.16-jessie"
]
name: Build under ${{matrix.target}}
runs-on: ubuntu-22.04
container: ${{matrix.target}}
defaults:
run:
shell: bash
steps:
- name: Machine Information
run: |
lscpu; free -h; df -h .
- name: System Information
run: |
date; uname -a; uptime; cat /etc/os-release; ls -C /boot || :
- name: Context Information
run: |
tty || :; id; printf %s\\n "$SHELL"; printf %s\\n "$PATH"; pwd
#- name: Setup
# run: |
# set -x
# sudo apt-get update
# sudo apt-get install g++-${{matrix.compiler.ver}}-${{matrix.target}} qemu-user
- name: Build Tools Information
run: |
make --version; gcc --version
- name: Checkout
uses: actions/checkout@v4
- name: Run Make (and Check)
run: |
make -j3 run \
GCC='gcc' \
GXX='g++' \
CFLAGS='-Wno-psabi -O3 -fno-stack-protector -fcf-protection=none' \
MARCH=
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: build-${{matrix.target}}
path: build