aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/doc.yml6
-rw-r--r--.github/workflows/push.yml52
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: