Skip to content

Commit

Permalink
global var ARTIFACT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
erciccione committed Jun 26, 2024
1 parent d6b5c93 commit 52d05b6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ on:

env:
SOURCE_ARTIFACT: source
ARTIFACT_DIR: source

jobs:
create-source-distribution:
name: Create Source Distribution
runs-on: ubuntu-latest
env:
ARTIFACT_DIR: source
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -40,8 +39,8 @@ jobs:
run: tar -czf depends.tar.gz depends
- name: Prepare Files for Artifact
run: |
mkdir -p $ARTIFACT_DIR
mv depends.tar.gz firo-*.tar.gz $ARTIFACT_DIR
mkdir -p ${{ env.ARTIFACT_DIR }}
mv depends.tar.gz firo-*.tar.gz ${{ env.ARTIFACT_DIR }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -64,27 +63,27 @@ jobs:
run: |
tar -xzf depends.tar.gz
tar -xzf firo-*.tar.gz --strip-components=1
working-directory: ${{ env.SOURCE_ARTIFACT }}
working-directory: ${{ env.ARTIFACT_DIR }}
- name: Install Required Packages
run: |
sudo apt-get update
sudo apt-get install -y python3-zmq
- name: Build Dependencies
run: make -C depends -j$(nproc)
working-directory: ${{ env.SOURCE_ARTIFACT }}
working-directory: ${{ env.ARTIFACT_DIR }}
- name: Build Firo
run: |
./configure --disable-jni --enable-tests --with-comparison-tool=no --prefix=$(realpath depends/x86_64-pc-linux-gnu)
make -j$(nproc)
working-directory: ${{ env.SOURCE_ARTIFACT }}
working-directory: ${{ env.ARTIFACT_DIR }}
- name: Run Unit Tests
run: make check
working-directory: ${{ env.SOURCE_ARTIFACT }}
working-directory: ${{ env.ARTIFACT_DIR }}
- name: Run RPC Tests
env:
TIMEOUT: 600
run: qa/pull-tester/rpc-tests.py -extended
working-directory: ${{ env.SOURCE_ARTIFACT }}
working-directory: ${{ env.ARTIFACT_DIR }}
- name: Prepare Files for Artifact
run: |
mkdir -p $BIN-DIR
Expand Down

0 comments on commit 52d05b6

Please sign in to comment.