aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2020-12-28 21:53:53 +0100
committerumarcor <unai.martinezcorral@ehu.eus>2020-12-28 23:48:09 +0100
commit262c531cd39412ee3ea1e019f102b9cbfc698da0 (patch)
tree96732ba66ad0531509d60f4fa4a249e3e2531a72 /.github
parent1880a6086c63994029b2c56b4a9f9183b11f5d63 (diff)
downloadghdl-262c531cd39412ee3ea1e019f102b9cbfc698da0.tar.gz
ghdl-262c531cd39412ee3ea1e019f102b9cbfc698da0.tar.bz2
ghdl-262c531cd39412ee3ea1e019f102b9cbfc698da0.zip
ci: MSYS2 job cleanup
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/push.yml32
1 files changed, 21 insertions, 11 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 179b833e0..46346ae1e 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -115,15 +115,14 @@ jobs:
max-parallel: 2
matrix:
include: [
- {installs: "MINGW32", pkg: "mcode"},
- #{installs: "MINGW32", pkg: "llvm"}, ! Not yet functional
- #{installs: "MINGW64", pkg: "mcode"}, ! mcode is not yet supported on win64
- {installs: "MINGW64", pkg: "llvm"},
+ {installs: "MINGW32", arch: i686, pkg: "mcode"},
+ #{installs: "MINGW32", arch: i686, pkg: "llvm"}, ! Not yet functional
+ #{installs: "MINGW64", arch: x86_64, pkg: "mcode"}, ! mcode is not yet supported on win64
+ {installs: "MINGW64", arch: x86_64, pkg: "llvm"},
]
name: '🟪 MSYS2 · ${{ matrix.installs }} · ${{ matrix.pkg }}'
env:
MINGW_INSTALLS: ${{ matrix.installs }}
- TARGET: ${{ matrix.pkg }}
defaults:
run:
shell: msys2 {0}
@@ -134,29 +133,40 @@ jobs:
with:
msystem: MSYS
update: true
- install: base-devel git
+ install: >
+ base-devel
+ git
+ mingw-w64-${{ matrix.arch }}-toolchain
- run: git config --global core.autocrlf input
shell: bash
- name: '🧰 Checkout'
uses: actions/checkout@v2
+ with:
+ # The command 'git describe' (used for version) needs the history.
+ fetch-depth: 0
+
+ - name: Build package
+ run: |
+ cd dist/msys2-${{ matrix.pkg }}
+ makepkg-mingw --noconfirm --noprogressbar -sCLf
- - name: Build and (hopefully) install package
- run: ./dist/msys2-mingw/run.sh -b
+ - name: Install package
+ run: pacman --noconfirm -U dist/msys2-${{ matrix.pkg }}/mingw-w64-*-any.pkg.tar.zst
- name: '📤 Upload artifact: builddir'
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.installs }}-${{ matrix.pkg }}-builddir
path: |
- ./dist/msys2-mingw/${{ matrix.pkg }}/src/
- ./dist/msys2-mingw/${{ matrix.pkg }}/pkg/
+ ./dist/msys2-${{ matrix.pkg }}/src/
+ ./dist/msys2-${{ matrix.pkg }}/pkg/
- name: '📤 Upload artifact: package'
uses: actions/upload-artifact@v2
with:
- path: ./dist/msys2-mingw/${{ matrix.pkg }}/mingw-*ghdl*.pkg.tar.zst
+ path: ./dist/msys2-${{ matrix.pkg }}/mingw-*ghdl*.pkg.tar.zst
- name: Test package
run: |