Skip to content

Build

Build #113

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
boost_version:
description: "Boost verion in format 1_74_0"
default: "1_74_0"
jobs:
Linux_build:
strategy:
matrix:
pic: [ "PIC", "noPIC" ]
os: [ "debian-buster", "debian-bullseye", "debian-bookworm", "debian-trixie", "ubuntu-2004", "ubuntu-2204", "ubuntu-2404" ]
runs-on: ubuntu-latest
container:
image: koudis/boost-build:${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 'Build'
run: ./unix.sh ${{ matrix.os }} ${{ github.event.inputs.boost_version }} ${{ matrix.pic }}
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: "boost-${{ github.event.inputs.boost_version }}-${{ matrix.os }}-${{ matrix.pic }}"
path: "boost_archive/"
Release:
name: Create Release
needs: [ Linux_build ]
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.boost_version }}
release_name: Release ${{ github.event.inputs.boost_version }}
body: Boost ${{ github.event.inputs.boost_version }} release
draft: true
prerelease: false
Upload_release_asset:
name: Upload release assets
strategy:
matrix:
pic: [ "PIC", "noPIC" ]
os: [ "debian_buster", "debian_bullseye", "debian_bookworm", "debian_trixie", "ubuntu_2004", "ubuntu_2204", "ubuntu_2404" ]
needs: [ Release ]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.Release.outputs.upload_url }}
asset_path: ./boost_archive/boost-${{ github.event.inputs.boost_version }}-${{ matrix.os }}-${{ matrix.pic }}.tar.bz2
asset_name: boost-${{ github.event.inputs.boost_version }}-${{ matrix.os }}-${{ matrix.pic }}.tar.bz2
asset_content_type: application/gzip