Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
dougxc committed Jul 29, 2024
1 parent e1dc875 commit eac0722
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ jobs:
### Build jobs
###

build-linux-x64:
name: linux-x64
needs: select
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x64
gcc-major-version: '10'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x64 == 'true'
# build-linux-x64:
# name: linux-x64
# needs: select
# uses: ./.github/workflows/build-linux.yml
# with:
# platform: linux-x64
# gcc-major-version: '10'
# configure-arguments: ${{ github.event.inputs.configure-arguments }}
# make-arguments: ${{ github.event.inputs.make-arguments }}
# if: needs.select.outputs.linux-x64 == 'true'

# build-linux-x86:
# name: linux-x86
Expand Down Expand Up @@ -290,15 +290,15 @@ jobs:
### Test jobs
###

test-linux-x64:
name: linux-x64
needs:
- build-linux-x64
uses: ./.github/workflows/test.yml
with:
platform: linux-x64
bootjdk-platform: linux-x64
runs-on: ubuntu-22.04
# test-linux-x64:
# name: linux-x64
# needs:
# - build-linux-x64
# uses: ./.github/workflows/test.yml
# with:
# platform: linux-x64
# bootjdk-platform: linux-x64
# runs-on: ubuntu-22.04

# test-linux-x86:
# name: linux-x86
Expand Down Expand Up @@ -342,8 +342,8 @@ jobs:

test-libgraal-linux-x64:
name: linux-x64
needs:
- build-linux-x64
# needs:
# - build-linux-x64
uses: ./.github/workflows/test-libgraal.yml
with:
platform: linux-x64
Expand All @@ -355,8 +355,8 @@ jobs:
name: 'Remove bundle artifacts'
runs-on: ubuntu-22.04
if: always()
needs:
- build-linux-x64
# needs:
# - build-linux-x64
# - build-linux-x86
# - build-linux-x64-hs-nopch
# - build-linux-x64-hs-zero
Expand All @@ -367,7 +367,7 @@ jobs:
# - build-macos-aarch64
# - build-windows-x64
# - build-windows-aarch64
- test-linux-x64
# - test-linux-x64
# - test-linux-x86
# - test-macos-x64
# - test-windows-x64
Expand All @@ -380,19 +380,19 @@ jobs:
with:
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'

- name: 'Remove bundle artifacts'
run: |
# Find and remove all bundle artifacts
ALL_ARTIFACT_URLS="$(curl -s \
-H 'Accept: application/json;api-version=6.0-preview' \
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
'${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
for url in $BUNDLE_ARTIFACT_URLS; do
echo "Removing $url"
curl -s \
-H 'Accept: application/json;api-version=6.0-preview' \
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
-X DELETE "$url" \
|| echo "Failed to remove bundle"
done
# - name: 'Remove bundle artifacts'
# run: |
# # Find and remove all bundle artifacts
# ALL_ARTIFACT_URLS="$(curl -s \
# -H 'Accept: application/json;api-version=6.0-preview' \
# -H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
# '${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
# BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
# for url in $BUNDLE_ARTIFACT_URLS; do
# echo "Removing $url"
# curl -s \
# -H 'Accept: application/json;api-version=6.0-preview' \
# -H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
# -X DELETE "$url" \
# || echo "Failed to remove bundle"
# done

0 comments on commit eac0722

Please sign in to comment.