|
24 | 24 | - name: Install dependencies |
25 | 25 | uses: ./.github/actions/install-dependencies |
26 | 26 | with: |
27 | | - cleanup-runner: 'true' |
| 27 | + cleanup-runner: "true" |
28 | 28 |
|
29 | 29 | - name: Build docker image |
30 | 30 | working-directory: application |
@@ -99,43 +99,43 @@ jobs: |
99 | 99 | container: |
100 | 100 | image: debian:bookworm-slim@sha256:98f4b71de414932439ac6ac690d7060df1f27161073c5036a7553723881bffbe |
101 | 101 | steps: |
102 | | - - name: Add apt sources for deb-src |
103 | | - shell: bash |
104 | | - run: | |
105 | | - sed -Ei "s/^Types: deb$/Types: deb deb-src/" /etc/apt/sources.list.d/debian.sources |
106 | | - apt-get update |
107 | | -
|
108 | | - - name: Find GPL/MPL licensed packages |
109 | | - shell: bash |
110 | | - env: |
111 | | - PACKAGES: ${{ needs.get-unique-names.outputs.unique_package_names_oneline }} |
112 | | - run: | |
113 | | - OUTPUT_DIR="output" |
114 | | - ARCHIVE_NAME="source_code.tar.gz" |
115 | | - mkdir -p "$OUTPUT_DIR" |
116 | | - cd "$OUTPUT_DIR" |
117 | | - # Split comma-separated list into an array |
118 | | - IFS=',' read -r -a PACKAGES_ARR <<< "$PACKAGES" |
119 | | - # Collect missing packages |
120 | | - # Install GNU Parallel for faster downloads |
121 | | - apt-get update && apt-get install -y parallel |
122 | | -
|
123 | | - # Download sources for GPL/MPL packages in parallel with error handling |
124 | | - if [ ${#PACKAGES_ARR[@]} -gt 0 ]; then |
125 | | - export OUTPUT_DIR |
126 | | - printf "%s\n" "${PACKAGES_ARR[@]}" | parallel --jobs 4 ' |
127 | | - echo "Downloading source for {}" |
128 | | - if ! apt-get source -q --download-only "{}"; then |
129 | | - echo "Warning: Source not available for {}" >&2 |
130 | | - fi |
131 | | - ' |
132 | | - fi |
133 | | - cd .. |
134 | | - tar -czf "$ARCHIVE_NAME" -C "$OUTPUT_DIR" . |
135 | | -
|
136 | | - - name: Upload source code archive |
137 | | - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 |
138 | | - with: |
139 | | - name: source-code-archive |
140 | | - path: source_code.tar.gz |
141 | | - retention-days: 3 |
| 102 | + - name: Add apt sources for deb-src |
| 103 | + shell: bash |
| 104 | + run: | |
| 105 | + sed -Ei "s/^Types: deb$/Types: deb deb-src/" /etc/apt/sources.list.d/debian.sources |
| 106 | + apt-get update |
| 107 | +
|
| 108 | + - name: Find GPL/MPL licensed packages |
| 109 | + shell: bash |
| 110 | + env: |
| 111 | + PACKAGES: ${{ needs.get-unique-names.outputs.unique_package_names_oneline }} |
| 112 | + run: | |
| 113 | + OUTPUT_DIR="output" |
| 114 | + ARCHIVE_NAME="source_code.tar.gz" |
| 115 | + mkdir -p "$OUTPUT_DIR" |
| 116 | + cd "$OUTPUT_DIR" |
| 117 | + # Split comma-separated list into an array |
| 118 | + IFS=',' read -r -a PACKAGES_ARR <<< "$PACKAGES" |
| 119 | + # Collect missing packages |
| 120 | + # Install GNU Parallel for faster downloads |
| 121 | + apt-get update && apt-get install -y parallel |
| 122 | +
|
| 123 | + # Download sources for GPL/MPL packages in parallel with error handling |
| 124 | + if [ ${#PACKAGES_ARR[@]} -gt 0 ]; then |
| 125 | + export OUTPUT_DIR |
| 126 | + printf "%s\n" "${PACKAGES_ARR[@]}" | parallel --jobs 4 ' |
| 127 | + echo "Downloading source for {}" |
| 128 | + if ! apt-get source -q --download-only "{}"; then |
| 129 | + echo "Warning: Source not available for {}" >&2 |
| 130 | + fi |
| 131 | + ' |
| 132 | + fi |
| 133 | + cd .. |
| 134 | + tar -czf "$ARCHIVE_NAME" -C "$OUTPUT_DIR" . |
| 135 | +
|
| 136 | + - name: Upload source code archive |
| 137 | + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 |
| 138 | + with: |
| 139 | + name: source-code-archive |
| 140 | + path: source_code.tar.gz |
| 141 | + retention-days: 3 |
0 commit comments