diff options
author | umarcor <38422348+umarcor@users.noreply.github.com> | 2020-05-20 07:51:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 07:51:37 +0200 |
commit | 4afe2564d96763b85ec837337a4b1992b8c4bcaa (patch) | |
tree | 03747513afb38a6f1c7ddb038458f78237111a43 /.github/workflows | |
parent | 4ae38ebfb077263cc24d63e84707322af39d0b0b (diff) | |
download | ghdl-4afe2564d96763b85ec837337a4b1992b8c4bcaa.tar.gz ghdl-4afe2564d96763b85ec837337a4b1992b8c4bcaa.tar.bz2 ghdl-4afe2564d96763b85ec837337a4b1992b8c4bcaa.zip |
ci: use eine/tip to provide nightly releases (#1315)
* ci: use eine/tip
* ci: skip 'nightly' builds on Travis and AppVeyor
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/doc.yml | 6 | ||||
-rw-r--r-- | .github/workflows/push.yml | 52 |
2 files changed, 47 insertions, 11 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 9431d4f84..9dd708a5c 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -1,5 +1,9 @@ name: 'doc' -on: [push, pull_request] + +on: + push: + pull_request: + jobs: linux: runs-on: ubuntu-latest diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d9d228bea..f415fa882 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,6 +1,8 @@ name: 'push' -on: [push, pull_request] +on: + push: + pull_request: env: CI: true @@ -14,17 +16,26 @@ jobs: - run: | TASK=buster+mcode ./dist/ci-run.sh -c --gpl --no-synth - linux: + lin: strategy: fail-fast: false max-parallel: 3 matrix: - task: [ mcode, llvm-7, gcc-8.3.0 ] + task: [ + { backend: mcode, version: '' }, + { backend: llvm, version: '-5.0' }, + { backend: gcc, version: '-8.3.0' } + ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: | - TASK=buster+${{ matrix.task }} ./dist/ci-run.sh -c + - name: Build and test GHDL in containers + run: | + TASK=ubuntu18+${{ matrix.task.backend }}${{ matrix.task.version }} ./dist/ci-run.sh -c + mv ghdl-*-ubuntu18-*.tgz ghdl-gha-ubuntu-${{ matrix.task.backend }}.tgz + - uses: actions/upload-artifact@v2 + with: + path: ghdl-gha-ubuntu-*.tgz osx: runs-on: macOS-latest @@ -34,7 +45,8 @@ jobs: brew update brew install p7zip ./dist/macosx/install-ada.sh - - run: | + - name: Build and test GHDL + run: | PATH=$PWD/gnat/bin:$PATH ./dist/ci-run.sh -c env: @@ -68,10 +80,18 @@ jobs: shell: msys2 {0} run: | ./dist/msys2-mingw/run.sh -b -# - uses: actions/upload-artifact@v2 -# with: -# name: ${{ matrix.task.installs }}-${{ matrix.task.pkg }}-pkg -# path: ./dist/msys2-mingw/${{ matrix.task.pkg }}/mingw-*ghdl*.pkg.tar.zst + cp ./dist/msys2-mingw/${{ matrix.task.pkg }}/mingw-*ghdl*.pkg.tar.zst ghdl-gha-${{ matrix.installs }}-${{ matrix.task }}.zst + - uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.task.installs }}-${{ matrix.task.pkg }}-builddir + path: ./dist/msys2-mingw/${{ matrix.task.pkg }}/src/ + - uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.task.installs }}-${{ matrix.task.pkg }}-builddir + path: ./dist/msys2-mingw/${{ matrix.task.pkg }}/pkg/ + - uses: actions/upload-artifact@v2 + with: + path: ./dist/msys2-mingw/${{ matrix.task.pkg }}/mingw-*ghdl*.pkg.tar.zst - name: Test package shell: msys2 {0} run: | @@ -79,6 +99,18 @@ jobs: env: MSYSTEM: ${{ matrix.task.installs }} + nightly: + needs: [ lin, win ] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v2 + - if: github.ref == 'ref/head/master' && github.event_name != 'pull_request' + uses: eine/tip@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: 'nightly' + files: artifact/* + #--- # TODO: |