diff --git a/.github/workflows/test-binaries-qemu.yml b/.github/workflows/test-binaries-qemu.yml deleted file mode 100644 index 910812d..0000000 --- a/.github/workflows/test-binaries-qemu.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: test-binaries-qemu - -permissions: - contents: read - actions: read - -on: - workflow_run: - workflows: [build] - types: - - completed - -jobs: - test-x86_64: - runs-on: ubuntu-22.04 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - steps: - # Debug step to list artifacts for the run - - name: List available artifacts - run: | - echo "Available artifacts:" - curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | jq '.artifacts[] | .name' - - name: Download coveralls-linux-x86_64 binary - uses: actions/download-artifact@v4 - with: - run-id: ${{ github.event.workflow_run.id }} - name: coveralls-linux-x86_64 - path: ./artifacts - - name: Test binary - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - run: | - chmod +x ./artifacts/coveralls-linux-x86_64 - ./artifacts/coveralls-linux-x86_64 --version - ./artifacts/coveralls-linux-x86_64 report --measure --base-path src/coverage_reporter/ - - test-aarch64: - runs-on: ubuntu-22.04 - steps: - # Debug step to list artifacts for the run - - name: List available artifacts - run: | - echo "Available artifacts:" - curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | jq '.artifacts[] | .name' - - name: Set up QEMU for aarch64 emulation - uses: docker/setup-qemu-action@v3 - with: - platforms: linux/arm64 # Or qemu-aarch64? - - name: Download coveralls-linux-aarch64 binary - uses: actions/download-artifact@v4 - with: - run-id: ${{ github.event.workflow_run.id }} - name: coveralls-linux-aarch64 - path: ./artifacts - - name: Test binary - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - run: | - chmod +x ./artifacts/coveralls-linux-aarch64 - ./artifacts/coveralls-linux-aarch64 --version - ./artifacts/coveralls-linux-aarch64 report --measure --base-path src/coverage_reporter/ diff --git a/.github/workflows/test-binaries.yml b/.github/workflows/test-binaries.yml deleted file mode 100644 index a9709df..0000000 --- a/.github/workflows/test-binaries.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: test-binaries - -permissions: - contents: read - actions: read - -on: - workflow_run: - workflows: [build] - types: - - completed - -jobs: - test_binaries: - name: Test Multi-Arch Binaries - runs-on: ubuntu-22.04 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - strategy: - matrix: - arch: [x86_64, aarch64] - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - # Debug step to list artifacts for the run - - name: List available artifacts - run: | - echo "Available artifacts:" - curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | jq '.artifacts[] | .name' - - # - name: Download built artifacts (linux binaries) - # uses: actions/download-artifact@v4 - # with: - # run-id: ${{ github.event.workflow_run.id }} - # name: coveralls-linux-binaries - # path: ./binaries/ - - - name: Download built x86_64 binary - uses: actions/download-artifact@v4 - with: - run-id: ${{ github.event.workflow_run.id }} - name: coveralls-windows.exe - path: ./binaries/ - - - name: Download built aarch64 binary - uses: actions/download-artifact@v4 - with: - run-id: ${{ github.event.workflow_run.id }} - name: coveralls-windows.exe - path: ./binaries/ - - # Debug step to list available artifacts - - name: List available artifacts in ./binaries/ - run: ls -la ./binaries/ - - - name: Download coverage report - uses: actions/download-artifact@v4 - with: - name: coverage-report # Assuming this is the name of the artifact from the build.yml run - path: ./coverage/ - - # Run the binary inside a Docker container with the correct architecture - - name: Test Binary in Architecture-Specific Docker Container - run: | - if [ "${{ matrix.arch }}" = "x86_64" ]; then - make ubuntu-x86_64 && ./binaries/coveralls-linux-x86_64 report --measure --base-path src/coverage_reporter/; - elif [ "${{ matrix.arch }}" = "aarch64" ]; then - make ubuntu-aarch64 && ./binaries/coveralls-linux-aarch64 report --measure --base-path src/coverage_reporter/; - fi - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} diff --git a/.github/workflows/test-trigger-workflow.yml b/.github/workflows/test-trigger-workflow.yml deleted file mode 100644 index d4359e0..0000000 --- a/.github/workflows/test-trigger-workflow.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: test-trigger-workflow - -on: - workflow_run: - workflows: [build] - types: - - completed - -jobs: - test: - runs-on: ubuntu-latest - steps: - - run: echo "Trigger worked"