From 1f71e55107faaeb99ea1f7c53c3e63174a65cc63 Mon Sep 17 00:00:00 2001 From: Ash Manning Date: Mon, 11 Mar 2024 22:30:51 +0800 Subject: [PATCH] rename CI artifacts --- .github/workflows/build.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69a04d4ee3f77..1c4e99bf3ff73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: push: branches: - "testchain" + workflow_dispatch: jobs: build-linux: @@ -36,9 +37,14 @@ jobs: - run: make -j4 + - name: 'Set environment variables: version number' + run: | + TESTCHAIN_VERSION=$(grep -oP "(?<=^PACKAGE_VERSION=').+(?='$)" configure) + echo "TESTCHAIN_VERSION=$TESTCHAIN_VERSION" >> "$GITHUB_ENV" + - uses: actions/upload-artifact@v4 with: - name: binaries-Linux + name: testchain-${{ env.TESTCHAIN_VERSION }}-x86_64-unknown-linux-gnu if-no-files-found: error path: | src/testchaind @@ -87,9 +93,14 @@ jobs: - run: make -j4 + - name: 'Set environment variables: version number' + run: | + TESTCHAIN_VERSION=$(grep -oP "(?<=^PACKAGE_VERSION=').+(?='$)" configure) + echo "TESTCHAIN_VERSION=$TESTCHAIN_VERSION" >> "$GITHUB_ENV" + - uses: actions/upload-artifact@v4 with: - name: binaries-Windows + name: testchain-${{ env.TESTCHAIN_VERSION }}-x86_64-w64-mingw32 if-no-files-found: error path: | src/testchaind.exe @@ -126,9 +137,14 @@ jobs: ./configure make -j4 # Limit the concurrency to prevent OOM + - name: 'Set environment variables: version number' + run: | + TESTCHAIN_VERSION=$(grep -oP "(?<=^PACKAGE_VERSION=').+(?='$)" configure) + echo "TESTCHAIN_VERSION=$TESTCHAIN_VERSION" >> "$GITHUB_ENV" + - uses: actions/upload-artifact@v4 with: - name: binaries-macOS + name: testchain-${{ env.TESTCHAIN_VERSION }}-x86_64-apple-darwin11 if-no-files-found: error path: | src/testchaind