Skip to content

Commit

Permalink
Add CLI to github releases. Bypass regressions for just version and p…
Browse files Browse the repository at this point in the history
…ublishing updates
  • Loading branch information
corey committed Mar 3, 2024
1 parent ad5e173 commit 07a2f49
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ jobs:
name: ${{ env.origen_ver_file }}
path: python/origen/${{ env.origen_ver_file }}

- name: Upload CLI as a standalone entity
uses: actions/upload-artifact@v3
with:
name: cli
path: python\origen\origen\__bin__\bin\origen

build_windows:
strategy:
fail-fast: false
Expand Down Expand Up @@ -488,6 +494,12 @@ jobs:
- name: List Origen Wheels
run: ls -al ./origen_wheels

- name: Upload CLI as a standalone entity
uses: actions/upload-artifact@v3
with:
name: cli
path: python\origen\origen\__bin__\bin\origen.exe

publish_to_pypi_test:
needs: [build_manylinux, build_windows]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -594,6 +606,17 @@ jobs:
ls -al ./origen_metal
ls -al ./origen
- uses: actions/download-artifact@v3
with:
name: cli
path: cli

- name: Show downloaded artifact directories
run: |
ls -al ./origen_metal
ls -al ./origen
ls -al ./cli
- uses: actions/download-artifact@v3
with:
name: ${{ env.om_ver_file }}
Expand All @@ -612,6 +635,11 @@ jobs:
files: origen
dest: origen.zip

- uses: vimtor/action-zip@v1.1
with:
files: cli
dest: cli.zip

- name: Get OM/Origen Versions
run: |
ls -al
Expand All @@ -635,7 +663,7 @@ jobs:
- name: Generate Github Release
uses: ncipollo/release-action@v1
with:
artifacts: ./origen_metal.zip, ./origen.zip
artifacts: ./origen_metal.zip, ./origen.zip, cli.zip
artifactErrorsFailBuild: true
prerelease: ${{ github.event.inputs.prerelease == 'true' }}
commit: ${{ github.sha }}
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/regression_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: Regression Tests
on: [push, workflow_dispatch]
on:
push:
paths-ignore:
# Ignore updates to just the publish action
- .github\workflows\publish.yml
# Ignore updates to just version files for Origen/OM/CLI
- rust\origen\cli\Cargo.toml
- python\origen\pyproject.toml
- python\origen_metal\pyproject.toml
workflow_dispatch:
jobs:
build:
strategy:
Expand Down

0 comments on commit 07a2f49

Please sign in to comment.