-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
359 additions
and
115 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
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,19 @@ | ||
# Libdbc release | ||
|
||
### Developer Notes | ||
|
||
**TODO: Update this!** | ||
|
||
## Breaking Changes | ||
|
||
* <Insert-Change> | ||
|
||
## Features | ||
|
||
* <Insert-Change> | ||
|
||
## Bugs | ||
|
||
* <Insert-Change> | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,23 +5,82 @@ on: | |
inputs: | ||
major: | ||
required: true | ||
type: string | ||
description: "The major version" | ||
type: number | ||
minor: | ||
required: true | ||
type: string | ||
description: "The minor version" | ||
type: number | ||
patch: | ||
required: true | ||
type: string | ||
description: "The patch version" | ||
type: number | ||
|
||
release_type: | ||
type: choice | ||
description: "The type of release you are making. Controls branch naming / creation" | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
check_version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Validate version in cmake before continuing" | ||
run: ./scripts/check_version.py --version "v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }}" | ||
|
||
pipeline: | ||
needs: [check_version] | ||
uses: ./.github/workflows/pipeline.yml | ||
|
||
create_release: | ||
runs-on: ubuntu-latest | ||
needs: [pipeline] | ||
|
||
env: | ||
header_file_path: build/single_header/libdbc/libdbc.hpp | ||
|
||
steps: | ||
- name: "Checkout the code" | ||
uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Setup Cargo" | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
source "$HOME/.cargo/env" | ||
- name: Configure build | ||
run: cmake -Bbuild -H$GITHUB_WORKSPACE -DDBC_GENERATE_SINGLE_HEADER=ON | ||
|
||
- name: Generate the header file | ||
run: cmake --build build --parallel `nproc` --target single_header | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: error | ||
name: header-only | ||
path: ${{ env.header_file_path }} | ||
|
||
- name: "Create a branch if we are making a major / minor release" | ||
uses: peterjgrainger/[email protected] | ||
if: ${{ inputs.release_type }} == "minor" || ${{ inputs.release_type }} == "major" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: 'release/v${{ inputs.major }}.${{ inputs.minor }}' | ||
sha: '${{ github.sha }}' | ||
|
||
- name: "Run tests as a pre check" | ||
uses: .github/workflows/tests.yml | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "${{ env.header_file_path }}" | ||
draft: true | ||
bodyFile: ".github/data/release_body.md" | ||
tag: v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }} | ||
commit: release/v${{ inputs.major }}.${{ inputs.minor }} | ||
|
||
|
||
|
||
|
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 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,4 +1,3 @@ | ||
|
||
#ifndef __DBC_HPP__ | ||
#define __DBC_HPP__ | ||
|
||
|
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 |
---|---|---|
|
@@ -21,4 +21,4 @@ class validity_error : public exception { | |
|
||
} // libdbc | ||
|
||
#endif // __ERROR_HPP__ | ||
#endif // __ERROR_HPP__ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.