aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-07-03 13:26:26 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-07-18 23:53:09 +0200
commitec54636a6cc7ae0eeb7a7e1353fa973f3e19cab6 (patch)
tree4526720b13fd7cd9ac1e4d7ab247d06218c16dad /.github/workflows
parent81bacd9f37b0e5b332b6cf90c6e8384aae34a403 (diff)
downloadghdl-ec54636a6cc7ae0eeb7a7e1353fa973f3e19cab6.tar.gz
ghdl-ec54636a6cc7ae0eeb7a7e1353fa973f3e19cab6.tar.bz2
ghdl-ec54636a6cc7ae0eeb7a7e1353fa973f3e19cab6.zip
ci: rework artifact names
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/Test.yml36
1 files changed, 29 insertions, 7 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml
index 1ab2e4ea4..9a3b833b7 100644
--- a/.github/workflows/Test.yml
+++ b/.github/workflows/Test.yml
@@ -65,6 +65,7 @@ jobs:
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v2
with:
+ name: man
path: doc/_build/man/ghdl.1
#
@@ -146,6 +147,7 @@ jobs:
- name: '📤 Upload artifact: package'
uses: actions/upload-artifact@v2
with:
+ name: ubuntu${{ matrix.os }}-${{ matrix.backend }}
path: ghdl-gha-ubuntu-*.tgz
#
@@ -189,6 +191,7 @@ jobs:
- name: '📤 Upload artifact: package'
uses: actions/upload-artifact@v2
with:
+ name: macos10.15-${{ matrix.backend }}
path: ghdl-macos*${{ matrix.backend }}.tgz
#
@@ -250,6 +253,7 @@ jobs:
- name: '📤 Upload artifact: package'
uses: actions/upload-artifact@v2
with:
+ name: ${{ matrix.installs }}-${{ matrix.pkg }}
path: scripts/msys2-${{ matrix.pkg }}/mingw-*ghdl*.pkg.tar.zst
#
@@ -300,6 +304,9 @@ jobs:
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v2
+ with:
+ path: artifact
+ name: ${{ matrix.sys.installs }}-${{ matrix.sys.pkg }}
- name: '🚧 Install package and Python dependencies'
run: |
@@ -348,6 +355,9 @@ jobs:
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v2
+ with:
+ path: artifact
+ name: ${{ matrix.installs }}-${{ matrix.pkg }}
- name: '🚧 Install package'
run: pacman --noconfirm -U artifact/mingw-w64-${{ matrix.sys.arch }}-ghdl-${{ matrix.sys.pkg }}-*.zst
@@ -400,6 +410,9 @@ jobs:
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v2
+ with:
+ path: artifact
+ name: ${{ matrix.installs }}-mcode
- name: '🚧 Install package'
run: pacman --noconfirm -U artifact/mingw-w64-${{ matrix.arch }}-ghdl-mcode-*.zst
@@ -419,6 +432,7 @@ jobs:
- name: '📤 Upload artifact: zipfile'
uses: actions/upload-artifact@v2
with:
+ name: ${{ matrix.installs }}-mcode-standalone
path: ${{ matrix.installs }}-mcode-standalone.zip
#
@@ -458,6 +472,7 @@ jobs:
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v2
with:
+ path: artifact
name: ${{ matrix.installs }}-${{ matrix.pkg }}
- name: '⚙️ Install package'
@@ -496,16 +511,18 @@ jobs:
- name: '📥 Download artifacts'
if: "!contains(github.ref, 'refs/tags/')"
uses: actions/download-artifact@v2
+ with:
+ path: artifacts
# Do not upload assets to tagged releases
- name: Set list of files for uploading
id: files
+ shell: python
run: |
- case '${{ github.ref }}' in
- 'refs/tags/'*) _list='none' ;;
- *) _list='artifact/*' ;;
- esac
- echo "::set-output name=list::${_list}"
+ print('None'
+ if '${{ github.ref }}'.startswith('refs/tags/')
+ else'::set-output name=list::**/*.zst **/*.tgz **/*-standalone.zip'
+ )
# Tagged: create a pre-release or a release (semver)
# Untagged: update the assets of pre-release 'nightly'
@@ -515,9 +532,10 @@ jobs:
tag: 'nightly'
files: ${{ steps.files.outputs.list }}
- - run: |
+ - name: '🔔 Trigger ghdl/docker'
+ run: |
curl -X POST https://api.github.com/repos/ghdl/docker/dispatches \
- -H "Content-Type: application/json" \
+ -H 'Content-Type: application/json' \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: token ${{ secrets.GHDL_BOT }}" \
--data '{"event_type": "ghdl"}'
@@ -553,6 +571,9 @@ jobs:
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v2
+ with:
+ path: artifact
+ name: MINGW64-llvm
- name: '🚧 Install package and Python dependencies'
run: |
@@ -590,6 +611,7 @@ jobs:
- name: '📥 Download artifact: coverage report'
uses: actions/download-artifact@v2
with:
+ path: artifact
name: coverage
- name: CodeCov