Skip to content

Commit

Permalink
rename CI artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Mar 11, 2024
1 parent 3fef476 commit 1f71e55
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- "testchain"
workflow_dispatch:

jobs:
build-linux:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f71e55

Please sign in to comment.