-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (70 loc) · 3.06 KB
/
Copy pathbuild.yml
File metadata and controls
74 lines (70 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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",
"fedora-42", "fedora-43" ]
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",
"fedora-42", "fedora-43" ]
needs: [ Release ]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Set OS name with underscores
id: os_name
run: echo "os_underscore=$(echo '${{ matrix.os }}' | sed 's/[.-]/_/g')" >> $GITHUB_OUTPUT
- 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-${{ github.event.inputs.boost_version }}-${{ matrix.os }}-${{ matrix.pic }}/boost-${{ github.event.inputs.boost_version }}-${{ steps.os_name.outputs.os_underscore }}-${{ matrix.pic }}.tar.bz2
asset_name: boost-${{ github.event.inputs.boost_version }}-${{ steps.os_name.outputs.os_underscore }}-${{ matrix.pic }}.tar.bz2
asset_content_type: application/gzip