aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorumarcor <38422348+umarcor@users.noreply.github.com>2020-05-20 07:51:37 +0200
committerGitHub <noreply@github.com>2020-05-20 07:51:37 +0200
commit4afe2564d96763b85ec837337a4b1992b8c4bcaa (patch)
tree03747513afb38a6f1c7ddb038458f78237111a43
parent4ae38ebfb077263cc24d63e84707322af39d0b0b (diff)
downloadghdl-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
-rw-r--r--.github/workflows/doc.yml6
-rw-r--r--.github/workflows/push.yml52
-rw-r--r--.travis.yml4
-rw-r--r--appveyor.yml1
4 files changed, 52 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:
diff --git a/.travis.yml b/.travis.yml
index 19f673f97..87610bfc9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,7 @@
+branches:
+ except:
+ - nightly
+
os: linux
dist: xenial
services: docker
diff --git a/appveyor.yml b/appveyor.yml
index 5879a4bca..3fb8b74b1 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -8,6 +8,7 @@ version: '{branch}-{build}'
# Branches to build
branches:
except:
+ - nightly
- travis
# =============================================================================