Skip to content

Commit 8b39cca

Browse files
committed
Add release-posix-b2-nodocs to release-cmake.yml
1 parent c0683c9 commit 8b39cca

File tree

1 file changed

+39
-5
lines changed

1 file changed

+39
-5
lines changed

.github/workflows/release-cmake.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
- boost-*
77

88
jobs:
9-
release-posix:
9+
release-posix-cmake:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
path: ${{ github.ref_name }}
1616
submodules: true
@@ -31,13 +31,13 @@ jobs:
3131
${{ github.ref_name }}-cmake.tar.gz
3232
${{ github.ref_name }}-cmake.tar.xz
3333
34-
release-windows:
34+
release-windows-cmake:
3535
runs-on: windows-latest
3636

37-
needs: release-posix
37+
needs: release-posix-cmake
3838

3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141
with:
4242
path: ${{ github.ref_name }}
4343
submodules: true
@@ -58,3 +58,37 @@ jobs:
5858
files: |
5959
${{ github.ref_name }}-cmake.zip
6060
${{ github.ref_name }}-cmake.7z
61+
62+
release-posix-b2-nodocs:
63+
runs-on: ubuntu-latest
64+
65+
needs: release-windows-cmake
66+
67+
steps:
68+
- uses: actions/checkout@v4
69+
with:
70+
path: ${{ github.ref_name }}
71+
submodules: true
72+
73+
- name: Cleanup
74+
shell: bash
75+
run: |
76+
find ${{ github.ref_name }} -name ".git" -prune -exec rm -rf {} +
77+
78+
- name: Move headers
79+
shell: bash
80+
run: |
81+
cd ${{ github.ref_name }}
82+
cp -r libs/*/include/boost libs/numeric/*/include/boost .
83+
rm -rf libs/*/include libs/numeric/*/include
84+
85+
- name: Create archives
86+
run: |
87+
tar -czf ${{ github.ref_name }}-b2-nodocs.tar.gz ${{ github.ref_name }}
88+
tar -cJf ${{ github.ref_name }}-b2-nodocs.tar.xz ${{ github.ref_name }}
89+
90+
- uses: softprops/action-gh-release@v1
91+
with:
92+
files: |
93+
${{ github.ref_name }}-b2-nodocs.tar.gz
94+
${{ github.ref_name }}-b2-nodocs.tar.xz

0 commit comments

Comments
 (0)