Skip to content

Commit

Permalink
simplify release
Browse files Browse the repository at this point in the history
workflow

test release
  • Loading branch information
SoloJacobs committed Mar 8, 2024
1 parent f8ab678 commit 5ad15f4
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
path: build
key: rcc-${{ env.RCC_TAG }}-${{ env.GO_VERSION }}-${{ env.RUBY_VERSION }}
fail-on-cache-miss: true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: build
name: rcc
path: build/
if-no-files-found: error
27 changes: 27 additions & 0 deletions .github/workflows/rccer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "RCCER"

on:
workflow_call:
outputs:
rcc_artifact_id:
value: ${{ jobs.build_rcc.outputs.rcc_artifact_id }}
workflow_dispatch: {}

jobs:
build_rcc:
name: Generate output
runs-on: ubuntu-latest
outputs:
rcc_artifact_id: ${{ steps.artifact-upload-step.outputs.artifact-id }}
steps:
- uses: actions/checkout@v4
- run: mkdir rcc
- run: touch rcc/a.txt
- run: touch rcc/b.txt
- run: find .
- uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: rcc_binaries
path: rcc
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
# release. For setting a different ref, all `needs` jobs need to be
# adjusted. Currently, everything uses the default branch.

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: executables/

- run: zip -r executables.zip artifact
- run: zip -r executables.zip executables

- name: "Push release tag"
# This is publicly visible and needs to be manually fixed if any
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "RELEASER"

on:
workflow_dispatch: {}

jobs:
build_rcc:
uses: ./.github/workflows/rccer.yaml
run_system_test:
needs: build_rcc
uses: ./.github/workflows/system_tester.yaml
with:
rcc_artifact_id: ${{ needs.build_rcc.outputs.rcc_artifact_id }}
create_release:
runs-on: ubuntu-latest
needs: [build_rcc, run_system_test]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
run-id: ${{ needs.build_rcc.outputs.rcc_artifact_id }}
- run: find .
8 changes: 4 additions & 4 deletions .github/workflows/robotmk_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:

- run: cargo build --target=x86_64-pc-windows-gnu --release

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: |
${{ github.workspace }}/target/x86_64-pc-windows-gnu/release/robotmk_scheduler.exe
${{ github.workspace }}/target/x86_64-pc-windows-gnu/release/robotmk_agent_plugin.exe
name: rmk_windows64
path: ${{ github.workspace }}/target/x86_64-pc-windows-gnu/release/
if-no-files-found: error

23 changes: 23 additions & 0 deletions .github/workflows/system_tester.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: "SYSTEM_TESTER"

on:
workflow_call:
inputs:
rcc_artifact_id:
required: true
type: string

jobs:
run_systemtest:
runs-on: windows-latest
steps:
- run: echo ${{ inputs.rcc_artifact_id }}
- run: mkdir system_test
- run: touch system_test/a.txt
- run: touch system_test/b.txt
- uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: system_test_debug_information
path: system_test
5 changes: 3 additions & 2 deletions .github/workflows/system_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
needs:
- rcc
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: C:\
- uses: actions/checkout@v4
Expand All @@ -25,6 +25,7 @@ jobs:
TEST_DIR: C:\test_scheduler
RCC_BINARY_PATH: C:\artifact\windows64\rcc.exe
RUN_FOR: 240
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: system_tests
path: C:\test_scheduler
14 changes: 14 additions & 0 deletions .github/workflows/system_tests_standalone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "SYSTEM_TESTER Standalone"

on:
workflow_dispatch: {}

jobs:
build_rcc:
uses: ./.github/workflows/rccer.yaml
run_system_test:
needs: build_rcc
uses: ./.github/workflows/system_tester.yaml
with:
rcc_artifact_id: ${{ needs.build_rcc.outputs.rcc_artifact_id }}

0 comments on commit 5ad15f4

Please sign in to comment.