From 4fff03fd1618f83ded13bca24d40955c0ef39219 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 5 Aug 2024 23:18:01 +0200 Subject: [PATCH] Improvements. --- .github/workflows/Pipeline.yml | 35 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 5519c48..a98e088 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -34,28 +34,27 @@ jobs: - name: 🔧 Install dependencies run: | + [ '${{ matrix.backend }}' == 'llvm' ] && LLVM_ARGS='llvm clang' || unset LLVM_ARGS sudo apt-get update - sudo apt-get install -y --no-install-recommends gcc g++ gnat - - - name: "llvm - 🔧 Install dependencies for LLVM backend" - if: matrix.backend == 'llvm' - run: sudo apt-get install -y --no-install-recommends llvm clang + sudo apt-get install -y --no-install-recommends gcc g++ gnat $LLVM_ARGS - name: Prepare build environemnt - run: mkdir -p build/${{ matrix.backend }} + run: | + mkdir -p build/${{ matrix.backend }} + ./configure --help - - name: Configure + - name: ⚙ Configure run: | cd build/${{ matrix.backend }} [ '${{ matrix.backend }}' == 'llvm' ] && LLVM_ARGS='--with-llvm-config' || unset LLVM_ARGS ../../configure --prefix=/opt/ghdl-${{ matrix.backend }} $LLVM_ARGS - - name: Make + - name: 🔨 Make run: | cd build/${{ matrix.backend }} make - - name: Install + - name: 📋 Install run: | cd build/${{ matrix.backend }} sudo make install @@ -124,22 +123,23 @@ jobs: - name: Check build environemnt run: | echo $PATH + ls -lAh /Users/runner/work/pyEDAA.CLITool/pyEDAA.CLITool/gnat/bin echo "which gnat: $(which gnat) ($($(which gnat) --version))" echo "which gnatmake: $(which gnatmake) ($($(which gnatmake) --version))" echo "which llvm-config: $(which llvm-config) ($($(which llvm-config) --version))" - - name: Configure + - name: ⚙ Configure run: | cd build/${{ matrix.backend }} [ '${{ matrix.backend }}' == 'llvm' ] && LLVM_ARGS='--with-llvm-config' || unset LLVM_ARGS ../../configure --prefix=/opt/ghdl-${{ matrix.backend }} $LLVM_ARGS - - name: Make + - name: 🔨 Make run: | cd build/${{ matrix.backend }} make - - name: Install + - name: 📋 Install run: | cd build/${{ matrix.backend }} sudo make install @@ -148,7 +148,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: ghdl-darwin-14.0-aarch64-${{ matrix.backend }} - path: /opt/ghdl-${{ matrix.backend }} + path: /opt/ghdl-${{ matrix.backend }}/ if-no-files-found: error retention-days: 1 @@ -195,18 +195,18 @@ jobs: - name: Prepare build environemnt run: mkdir -p build/${{ matrix.backend }} - - name: Configure + - name: ⚙ Configure run: | cd build/${{ matrix.backend }} [ '${{ matrix.backend }}' == 'llvm' ] && LLVM_ARGS='--with-llvm-config' || unset LLVM_ARGS ../../configure --prefix=/opt/ghdl-${{ matrix.runtime }}-${{ matrix.backend }} $LLVM_ARGS - - name: Make + - name: 🔨 Make run: | cd build/${{ matrix.backend }} make - - name: Install + - name: 📋 Install run: | cd build/${{ matrix.backend }} make install @@ -215,12 +215,13 @@ jobs: run: | ls -lAh /opt ls -lAh /opt/ghdl-${{ matrix.runtime }}-${{ matrix.backend }} + ls -lAh /opt/ghdl-${{ matrix.runtime }}-${{ matrix.backend }}/bin - name: 📤 Upload 'GHDL' artifact uses: actions/upload-artifact@v4 with: name: ghdl-windows-${{ matrix.runtime }}-${{ matrix.backend }} - path: /opt/ghdl-${{ matrix.runtime }}-${{ matrix.backend }} + path: /opt/ghdl-${{ matrix.runtime }}-${{ matrix.backend }}/ if-no-files-found: error retention-days: 1