-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic Github Actions to the Blackbox Tools
- Loading branch information
1 parent
439a993
commit d2cfbe5
Showing
9 changed files
with
125 additions
and
39 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,26 @@ | ||
name: Artifact links comments creator | ||
on: | ||
workflow_run: | ||
workflows: ["PR"] | ||
types: [completed] | ||
|
||
jobs: | ||
artifacts-url-comments: | ||
name: Add artifact links to PR and issues | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Get information about the original PR | ||
uses: potiuk/get-workflow-origin@v1_5 | ||
id: get-info | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sourceRunId: ${{ github.event.workflow_run.id }} | ||
- name: Add artifact links to PR and issues | ||
uses: tonyhallett/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
prefix: "**Do you want to test this code? Here you have an automated build:**" | ||
suffix: "_**WARNING:** It may be unstable. Use only for testing!_" | ||
format: name | ||
addTo: pull |
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,30 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
name: Build (${{ matrix.name }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- name: Linux | ||
os: ubuntu-22.04 | ||
|
||
- name: macOS | ||
os: macos-11 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build the tools | ||
run: make all | ||
|
||
- name: Publish build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Blackbox tools artifacts ${{matrix.name}} | ||
path: obj/* | ||
retention-days: 60 |
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,16 @@ | ||
name: Hide artifact links comments | ||
|
||
on: | ||
pull_request_target: | ||
types: [synchronize, reopened] | ||
|
||
jobs: | ||
hide-artifacts-link-comments: | ||
name: Hide artifact links | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Hide comments | ||
uses: int128/hide-comment-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
starts-with: "**Do you want to test this code? Here you have an automated 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Manual Build | ||
run-name: Manual Build ${{ github.ref_name }} | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: ./.github/workflows/ci.yml |
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,11 @@ | ||
name: Nightly | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: ./.github/workflows/ci.yml |
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,17 @@ | ||
name: No Response | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
schedule: | ||
- cron: 0 4 * * * | ||
|
||
jobs: | ||
no-response: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # v0.5.0 | ||
with: | ||
daysUntilClose: 1 | ||
responseRequiredLabel: Missing Information | ||
token: ${{ github.token }} |
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,12 @@ | ||
name: PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- '*-maintenance' | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: ./.github/workflows/ci.yml |
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