diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index 659e995015..930eb0628b 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -14,15 +14,14 @@ on: - master env: SOURCE_ARTIFACT: source + 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@v2 + uses: actions/checkout@v4 - name: Install Required Packages run: | sudo apt-get update @@ -38,13 +37,13 @@ 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 $SOURCE_ARTIFACT_DIR + mv depends.tar.gz firo-*.tar.gz $SOURCE_ARTIFACT_DIR - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: ${{ env.SOURCE_ARTIFACT }} - path: ${{ env.ARTIFACT_DIR }} + path: ${{ env.SOURCE_ARTIFACT_DIR }} build-linux: name: Build for Linux needs: create-source-distribution @@ -54,9 +53,10 @@ jobs: TEST_LOG_ARTIFACT_DIR: test-logs steps: - name: Getting Source - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: ${{ env.SOURCE_ARTIFACT }} + path: ${{ env.SOURCE_ARTIFACT_DIR }} - name: Extract Archives run: | tar -xzf depends.tar.gz @@ -87,7 +87,7 @@ jobs: mkdir -p $ARTIFACT_DIR mv $SOURCE_ARTIFACT/src/{firo-cli,firo-tx,firod,qt/firo-qt} $ARTIFACT_DIR - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: linux-binaries path: ${{ env.ARTIFACT_DIR }} @@ -108,7 +108,7 @@ jobs: fi - name: Upload Test Logs Artifact if: failure() - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: test-logs path: ${{ env.TEST_LOG_ARTIFACT_DIR }} @@ -120,9 +120,10 @@ jobs: ARTIFACT_DIR: windows-binaries steps: - name: Getting Source - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: ${{ env.SOURCE_ARTIFACT }} + path: ${{ env.SOURCE_ARTIFACT_DIR }} - name: Extract Archives run: | tar -xzf depends.tar.gz @@ -149,7 +150,7 @@ jobs: mkdir -p $ARTIFACT_DIR mv $SOURCE_ARTIFACT/src/{firo-cli.exe,firo-tx.exe,firod.exe,qt/firo-qt.exe} $ARTIFACT_DIR - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: windows-binaries path: ${{ env.ARTIFACT_DIR }} @@ -161,9 +162,10 @@ jobs: ARTIFACT_DIR: mac-binaries steps: - name: Getting Source - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: ${{ env.SOURCE_ARTIFACT }} + path: ${{ env.SOURCE_ARTIFACT_DIR }} - name: Extract Archives run: | tar -xzf depends.tar.gz @@ -189,7 +191,7 @@ jobs: mkdir -p $ARTIFACT_DIR mv $SOURCE_ARTIFACT/src/{firo-cli,firo-tx,firod,qt/firo-qt} $ARTIFACT_DIR - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: mac-binaries path: ${{ env.ARTIFACT_DIR }}