From b29eb31043140e97ac40c6262807dafddc96263a Mon Sep 17 00:00:00 2001 From: James Kessler Date: Thu, 26 Sep 2024 13:10:48 -0700 Subject: [PATCH] Add debug steps to figure out why test-binaries.yml isn't running when build.yml completes. --- .github/workflows/build.yml | 26 ++++++++++++++------- .github/workflows/test-binaries.yml | 20 +++++++++++++--- .github/workflows/test-trigger-workflow.yml | 13 +++++++++++ 3 files changed, 47 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/test-trigger-workflow.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f181cd..024f6cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,6 +90,10 @@ jobs: - name: Package linux binaries run: make package + # Debug step to verify what files are in the dist/ directory + - name: List files in dist/ directory + run: ls -la dist/ + - name: Upload linux binaries uses: actions/upload-artifact@v3 with: @@ -97,15 +101,15 @@ jobs: path: dist/* if-no-files-found: error - - name: Create Trigger File - run: echo "test-binaries-trigger" > test-binaries-trigger.txt - - - name: Upload Trigger Artifact - uses: actions/upload-artifact@v3 - with: - name: test-binaries-trigger - path: test-binaries-trigger.txt - +# - name: Create Trigger File +# run: echo "test-binaries-trigger" > test-binaries-trigger.txt +# +# - name: Upload Trigger Artifact +# uses: actions/upload-artifact@v3 +# with: +# name: test-binaries-trigger +# path: test-binaries-trigger.txt +# # - name: Upload coveralls-linux # uses: actions/upload-artifact@v3 # with: @@ -142,6 +146,10 @@ jobs: # name: coveralls-linux-aarch64.tar.gz # path: dist/coveralls-linux-aarch64.tar.gz + # Debug step to verify what files are in the dist/ directory + - name: List files in dist/ directory + run: ls -la dist/ + release: runs-on: ubuntu-latest needs: [build-windows, build-linux] diff --git a/.github/workflows/test-binaries.yml b/.github/workflows/test-binaries.yml index 6fd12dc..cb952cd 100644 --- a/.github/workflows/test-binaries.yml +++ b/.github/workflows/test-binaries.yml @@ -23,14 +23,28 @@ jobs: - name: Print event context run: echo "${{ toJson(github.event) }}" + # Debug step to list available artifacts + - name: List available artifacts in dist/ + run: ls -la dist/ + + # Debug step to list available artifacts + - name: List available artifacts in ./binaries/ + run: ls -la ./binaries/ + - name: Download built artifacts (linux binaries) uses: actions/download-artifact@v3 with: - name: | - coveralls-linux-x86_64 - coveralls-linux-aarch64 + name: coveralls-linux-binaries path: ./binaries/ + # Debug step to list available artifacts + - name: List available artifacts in ./binaries/ + run: ls -la ./binaries/ + + # Debug step to list available artifacts + - name: List available artifacts in dist/ + run: ls -la dist/ + - name: Download coverage report uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/test-trigger-workflow.yml b/.github/workflows/test-trigger-workflow.yml new file mode 100644 index 0000000..0e26488 --- /dev/null +++ b/.github/workflows/test-trigger-workflow.yml @@ -0,0 +1,13 @@ +name: "Test Trigger Workflow" + +on: + workflow_run: + workflows: ["Build"] + types: + - completed + +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "Trigger worked"