forked from mat007/turtle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mat007#92 from Flamefire/clean_build_dir
Clean build dir
- Loading branch information
Showing
22 changed files
with
174 additions
and
268 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 2020 Alexander Grund | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) | ||
|
||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
tags: ['v*'] | ||
|
||
jobs: | ||
release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
env: | ||
BOOST_VERSION: 1.71.0 | ||
BOOST_ROOT: ${{github.workspace}}/dependencies/boost | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: boostorg/boost | ||
ref: boost-${{env.BOOST_VERSION}} | ||
path: ${{env.BOOST_ROOT}} | ||
fetch-depth: 1 | ||
- name: Prepare boost | ||
working-directory: ${{env.BOOST_ROOT}} | ||
run: | | ||
git submodule update --init --jobs 3 tools/boostdep tools/quickbook tools/boostbook | ||
python tools/boostdep/depinst/depinst.py --exclude test --git_args '--jobs 3' ../tools/quickbook | ||
./bootstrap.sh || (cat bootstrap.log && false) | ||
- name: Install dependencies | ||
run: sudo apt-get install xsltproc docbook-xsl docbook-xml | ||
- name: Create documentation | ||
run: scripts/build_doc.sh -j3 | ||
- name: Package documentation | ||
run: tar -czvf turtle_doc.tar.gz html | ||
working-directory: doc | ||
# This runs only when actual tags are created | ||
- name: Create Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
C++ mock object library for Boost | ||
draft: true | ||
prerelease: false | ||
- name: Upload docs | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/upload-release-asset@v1.0.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: doc/turtle_doc.tar.gz | ||
asset_name: turtle_doc.tar.gz | ||
asset_content_type: application/tar.gz |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.vscode | ||
bin | ||
out | ||
build/xsl | ||
/build | ||
__build |
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
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
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.