-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SKA-462: add workflows + actions for public github repo (#15)
- Loading branch information
1 parent
6227032
commit ab5632d
Showing
3 changed files
with
87 additions
and
0 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,35 @@ | ||
name: build CMake preset | ||
description: Build the given SIL Kit Adapters CMake preset | ||
|
||
inputs: | ||
preset-name: | ||
description: "The preset name from CMakePresets.json." | ||
required: true | ||
cmake-args: | ||
description: "Additional CMake arguments" | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Setup host | ||
if: runner.os == 'Linux' | ||
run: sudo apt install -y ninja-build | ||
id: setup-host-linux | ||
shell: bash | ||
|
||
- name: Configure ${{ inputs.preset-name }} | ||
run: cmake --preset ${{ inputs.preset-name }} ${{ inputs.cmake-args }} | ||
id: cmake-configure | ||
shell: bash | ||
|
||
- name: Build ${{ inputs.preset-name }} | ||
id: cmake-build | ||
run: cmake --build --preset ${{ inputs.preset-name }} | ||
shell: bash | ||
|
||
- name: Pack ${{ inputs.preset-name }} | ||
id: cmake-pack | ||
run: cmake --build --preset ${{ inputs.preset-name }} --target package | ||
shell: bash |
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,29 @@ | ||
name: 'Linux Release Build' | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
linux-release: | ||
name: Build SIL Kit GLIO for Release configuration | ||
environment: public-github-runners | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Build | ||
uses: ./.github/actions/build-cmake-preset | ||
with: | ||
preset-name: linux-release | ||
cmake-args: "-D PACKAGE_FILENAME_SUFFIX=-${{ github.ref_name }}-ubuntu-20.04-x86_64-gcc" | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: true | ||
draft: true | ||
files: | | ||
_build/linux-release/SilKit-Adapters*.zip |
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,23 @@ | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
jobs: | ||
sync_main_branch: | ||
name: Sync branch to remote public GitHub | ||
runs-on: | ||
group: shared-runners | ||
labels: Linux | ||
environment: repo-sync-action/public-github | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
clean: true | ||
fetch-depth: 0 | ||
- uses: vector-actions/repo-sync-action@main | ||
with: | ||
app-key: ${{ secrets.APP_KEY }} | ||
app-id: ${{ secrets.APP_ID }} | ||
remote-repo-url: ${{ secrets.REMOTE_REPO_URL }} | ||
remote-branch: ${{ secrets.REMOTE_BRANCH }} | ||
local-branch: origin/main |