|
1 | | -name: Test S3 Listener |
| 1 | +# name: Test S3 Listener |
2 | 2 |
|
3 | | -on: |
| 3 | +# on: |
4 | 4 |
|
5 | | - schedule: |
6 | | - - cron: "*/5 * * * *" # Runs every 5 minutes (UTC) |
7 | | - workflow_dispatch: # Manual trigger for testing |
8 | | - pull_request: |
9 | | - branches: |
10 | | - - main # Only trigger on test branch |
| 5 | +# schedule: |
| 6 | +# - cron: "*/5 * * * *" # Runs every 5 minutes (UTC) |
| 7 | +# workflow_dispatch: # Manual trigger for testing |
| 8 | +# pull_request: |
| 9 | +# branches: |
| 10 | +# - main # Only trigger on test branch |
11 | 11 |
|
12 | | -permissions: |
13 | | - contents: read |
| 12 | +# permissions: |
| 13 | +# contents: read |
14 | 14 |
|
15 | | -jobs: |
16 | | - setup: |
17 | | - name: "Setup Test" |
18 | | - runs-on: ubuntu-latest |
19 | | - steps: |
20 | | - - name: Checkout |
21 | | - uses: actions/checkout@v4 |
| 15 | +# jobs: |
| 16 | +# setup: |
| 17 | +# name: "Setup Test" |
| 18 | +# runs-on: ubuntu-latest |
| 19 | +# steps: |
| 20 | +# - name: Checkout |
| 21 | +# uses: actions/checkout@v4 |
22 | 22 |
|
23 | | - - name: Setup phase |
24 | | - run: | |
25 | | - echo "Setting up test environment..." |
26 | | - sleep 2 |
27 | | - echo "Setup complete" |
| 23 | +# - name: Setup phase |
| 24 | +# run: | |
| 25 | +# echo "Setting up test environment..." |
| 26 | +# sleep 2 |
| 27 | +# echo "Setup complete" |
28 | 28 |
|
29 | | - warm_up: |
30 | | - needs: setup |
31 | | - runs-on: ubuntu-latest |
32 | | - strategy: |
33 | | - fail-fast: false |
34 | | - matrix: |
35 | | - machine: |
36 | | - - rb3gen2-core-kit |
37 | | - - qcom-armv8a |
38 | | - distro: |
39 | | - - name: poky-altcfg |
40 | | - - name: qcom-distro |
41 | | - name: warmup-${{ matrix.machine }}/${{ matrix.distro.name }} |
42 | | - steps: |
43 | | - - name: Checkout |
44 | | - uses: actions/checkout@v4 |
| 29 | +# warm_up: |
| 30 | +# needs: setup |
| 31 | +# runs-on: ubuntu-latest |
| 32 | +# strategy: |
| 33 | +# fail-fast: false |
| 34 | +# matrix: |
| 35 | +# machine: |
| 36 | +# - rb3gen2-core-kit |
| 37 | +# - qcom-armv8a |
| 38 | +# distro: |
| 39 | +# - name: poky-altcfg |
| 40 | +# - name: qcom-distro |
| 41 | +# name: warmup-${{ matrix.machine }}/${{ matrix.distro.name }} |
| 42 | +# steps: |
| 43 | +# - name: Checkout |
| 44 | +# uses: actions/checkout@v4 |
45 | 45 |
|
46 | | - - name: Simulate build preparation |
47 | | - run: | |
48 | | - echo "Preparing build for ${{ matrix.machine }}/${{ matrix.distro.name }}" |
49 | | - sleep 2 |
50 | | - echo "Preparation complete" |
| 46 | +# - name: Simulate build preparation |
| 47 | +# run: | |
| 48 | +# echo "Preparing build for ${{ matrix.machine }}/${{ matrix.distro.name }}" |
| 49 | +# sleep 2 |
| 50 | +# echo "Preparation complete" |
51 | 51 |
|
52 | | - - name: Simulate compilation |
53 | | - run: | |
54 | | - echo "Compiling for ${{ matrix.machine }}/${{ matrix.distro.name }}" |
55 | | - sleep 2 |
56 | | - echo "Compilation complete" |
| 52 | +# - name: Simulate compilation |
| 53 | +# run: | |
| 54 | +# echo "Compiling for ${{ matrix.machine }}/${{ matrix.distro.name }}" |
| 55 | +# sleep 2 |
| 56 | +# echo "Compilation complete" |
57 | 57 |
|
58 | | - compile: |
59 | | - needs: warm_up |
60 | | - runs-on: ubuntu-latest |
61 | | - strategy: |
62 | | - fail-fast: false |
63 | | - matrix: |
64 | | - machine: |
65 | | - - iq-615-evk |
66 | | - - iq-8275-evk |
67 | | - - iq-9075-evk |
68 | | - - rb1-core-kit |
69 | | - - sm8750-mtp |
70 | | - distro: |
71 | | - - name: poky-altcfg |
72 | | - - name: qcom-distro |
73 | | - - name: qcom-distro-selinux |
74 | | - include: |
75 | | - - machine: qcom-armv8a |
76 | | - distro: |
77 | | - name: qcom-distro-sota |
78 | | - - machine: iq-9075-evk |
79 | | - distro: |
80 | | - name: performance |
81 | | - name: ${{ matrix.machine }}/${{ matrix.distro.name }} |
82 | | - steps: |
83 | | - - name: Checkout |
84 | | - uses: actions/checkout@v4 |
| 58 | +# compile: |
| 59 | +# needs: warm_up |
| 60 | +# runs-on: ubuntu-latest |
| 61 | +# strategy: |
| 62 | +# fail-fast: false |
| 63 | +# matrix: |
| 64 | +# machine: |
| 65 | +# - iq-615-evk |
| 66 | +# - iq-8275-evk |
| 67 | +# - iq-9075-evk |
| 68 | +# - rb1-core-kit |
| 69 | +# - sm8750-mtp |
| 70 | +# distro: |
| 71 | +# - name: poky-altcfg |
| 72 | +# - name: qcom-distro |
| 73 | +# - name: qcom-distro-selinux |
| 74 | +# include: |
| 75 | +# - machine: qcom-armv8a |
| 76 | +# distro: |
| 77 | +# name: qcom-distro-sota |
| 78 | +# - machine: iq-9075-evk |
| 79 | +# distro: |
| 80 | +# name: performance |
| 81 | +# name: ${{ matrix.machine }}/${{ matrix.distro.name }} |
| 82 | +# steps: |
| 83 | +# - name: Checkout |
| 84 | +# uses: actions/checkout@v4 |
85 | 85 |
|
86 | | - - name: Simulate build process |
87 | | - run: | |
88 | | - echo "Building ${{ matrix.machine }}/${{ matrix.distro.name }}" |
89 | | - sleep 2 |
90 | | - echo "Build complete" |
| 86 | +# - name: Simulate build process |
| 87 | +# run: | |
| 88 | +# echo "Building ${{ matrix.machine }}/${{ matrix.distro.name }}" |
| 89 | +# sleep 2 |
| 90 | +# echo "Build complete" |
91 | 91 |
|
92 | | - - name: Simulate artifact staging |
93 | | - run: | |
94 | | - echo "Staging artifacts for ${{ matrix.machine }}/${{ matrix.distro.name }}" |
95 | | - mkdir -p ./uploads/${{ matrix.distro.name }}/${{ matrix.machine }} |
96 | | - echo "Build artifacts for ${{ matrix.machine }}/${{ matrix.distro.name }}" > ./uploads/${{ matrix.distro.name }}/${{ matrix.machine }}/artifact.txt |
97 | | - echo "Artifacts staged" |
98 | | - sleep 2 |
| 92 | +# - name: Simulate artifact staging |
| 93 | +# run: | |
| 94 | +# echo "Staging artifacts for ${{ matrix.machine }}/${{ matrix.distro.name }}" |
| 95 | +# mkdir -p ./uploads/${{ matrix.distro.name }}/${{ matrix.machine }} |
| 96 | +# echo "Build artifacts for ${{ matrix.machine }}/${{ matrix.distro.name }}" > ./uploads/${{ matrix.distro.name }}/${{ matrix.machine }}/artifact.txt |
| 97 | +# echo "Artifacts staged" |
| 98 | +# sleep 2 |
99 | 99 |
|
100 | | - - name: Simulate S3 upload |
101 | | - id: s3_upload |
102 | | - run: | |
103 | | - echo "Uploading to S3: ${{ matrix.machine }}/${{ matrix.distro.name }}" |
104 | | - sleep 2 |
105 | | - echo "S3 upload complete" |
106 | | - echo "url=https://s3.example.com/builds/${{ github.run_id }}/${{ matrix.distro.name }}/${{ matrix.machine }}" >> $GITHUB_OUTPUT |
| 100 | +# - name: Simulate S3 upload |
| 101 | +# id: s3_upload |
| 102 | +# run: | |
| 103 | +# echo "Uploading to S3: ${{ matrix.machine }}/${{ matrix.distro.name }}" |
| 104 | +# sleep 2 |
| 105 | +# echo "S3 upload complete" |
| 106 | +# echo "url=https://s3.example.com/builds/${{ github.run_id }}/${{ matrix.distro.name }}/${{ matrix.machine }}" >> $GITHUB_OUTPUT |
107 | 107 |
|
108 | | - - name: Save build URL |
109 | | - run: | |
110 | | - BUILDNAME="${{ matrix.machine }}_${{ matrix.distro.name }}" |
111 | | - FILENAME="build-url_${BUILDNAME}" |
112 | | - echo "${{ steps.s3_upload.outputs.url }}" > "${FILENAME}" |
113 | | - echo "Build URL saved: ${FILENAME}" |
| 108 | +# - name: Save build URL |
| 109 | +# run: | |
| 110 | +# BUILDNAME="${{ matrix.machine }}_${{ matrix.distro.name }}" |
| 111 | +# FILENAME="build-url_${BUILDNAME}" |
| 112 | +# echo "${{ steps.s3_upload.outputs.url }}" > "${FILENAME}" |
| 113 | +# echo "Build URL saved: ${FILENAME}" |
114 | 114 |
|
115 | | - - name: Upload build URL artifact |
116 | | - uses: actions/upload-artifact@v4 |
117 | | - with: |
118 | | - name: build-url_${{ matrix.machine }}_${{ matrix.distro.name }} |
119 | | - path: build-url_${{ matrix.machine }}_${{ matrix.distro.name }} |
| 115 | +# - name: Upload build URL artifact |
| 116 | +# uses: actions/upload-artifact@v4 |
| 117 | +# with: |
| 118 | +# name: build-url_${{ matrix.machine }}_${{ matrix.distro.name }} |
| 119 | +# path: build-url_${{ matrix.machine }}_${{ matrix.distro.name }} |
120 | 120 |
|
121 | | - summary: |
122 | | - needs: compile |
123 | | - runs-on: ubuntu-latest |
124 | | - name: "Generate Summary" |
125 | | - steps: |
126 | | - - name: Download all build URLs |
127 | | - uses: actions/download-artifact@v4 |
128 | | - with: |
129 | | - pattern: build-url* |
130 | | - path: urlfiles |
131 | | - merge-multiple: true |
| 121 | +# summary: |
| 122 | +# needs: compile |
| 123 | +# runs-on: ubuntu-latest |
| 124 | +# name: "Generate Summary" |
| 125 | +# steps: |
| 126 | +# - name: Download all build URLs |
| 127 | +# uses: actions/download-artifact@v4 |
| 128 | +# with: |
| 129 | +# pattern: build-url* |
| 130 | +# path: urlfiles |
| 131 | +# merge-multiple: true |
132 | 132 |
|
133 | | - - name: Generate summary |
134 | | - run: | |
135 | | - echo "## Test Build Summary" >> $GITHUB_STEP_SUMMARY |
136 | | - echo "" >> $GITHUB_STEP_SUMMARY |
137 | | - echo "| Machine | Distro | URL |" >> $GITHUB_STEP_SUMMARY |
138 | | - echo "|---------|--------|-----|" >> $GITHUB_STEP_SUMMARY |
| 133 | +# - name: Generate summary |
| 134 | +# run: | |
| 135 | +# echo "## Test Build Summary" >> $GITHUB_STEP_SUMMARY |
| 136 | +# echo "" >> $GITHUB_STEP_SUMMARY |
| 137 | +# echo "| Machine | Distro | URL |" >> $GITHUB_STEP_SUMMARY |
| 138 | +# echo "|---------|--------|-----|" >> $GITHUB_STEP_SUMMARY |
139 | 139 |
|
140 | | - for file in urlfiles/build-url_*; do |
141 | | - if [ -f "$file" ]; then |
142 | | - filename=$(basename "$file") |
143 | | - # Extract machine and distro from filename: build-url_MACHINE_DISTRO |
144 | | - machine_distro="${filename#build-url_}" |
145 | | - url=$(cat "$file") |
146 | | - echo "| ${machine_distro} | | [Link]($url) |" >> $GITHUB_STEP_SUMMARY |
147 | | - fi |
148 | | - done |
| 140 | +# for file in urlfiles/build-url_*; do |
| 141 | +# if [ -f "$file" ]; then |
| 142 | +# filename=$(basename "$file") |
| 143 | +# # Extract machine and distro from filename: build-url_MACHINE_DISTRO |
| 144 | +# machine_distro="${filename#build-url_}" |
| 145 | +# url=$(cat "$file") |
| 146 | +# echo "| ${machine_distro} | | [Link]($url) |" >> $GITHUB_STEP_SUMMARY |
| 147 | +# fi |
| 148 | +# done |
149 | 149 |
|
150 | | - sleep 2 |
151 | | - echo "Summary generation complete" |
| 150 | +# sleep 2 |
| 151 | +# echo "Summary generation complete" |
0 commit comments