mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
split tests
This commit is contained in:
parent
74cababd57
commit
1e4635d400
3 changed files with 19 additions and 30 deletions
9
.github/workflows/build_iso.yml
vendored
9
.github/workflows/build_iso.yml
vendored
|
|
@ -7,6 +7,9 @@ on:
|
||||||
parent_job_name:
|
parent_job_name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
flatpaks_refs_dir:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
outputs:
|
outputs:
|
||||||
iso_name-38:
|
iso_name-38:
|
||||||
description: "Version 38 ISO Name"
|
description: "Version 38 ISO Name"
|
||||||
|
|
@ -125,10 +128,10 @@ jobs:
|
||||||
image_tag: ${{ matrix.version }}
|
image_tag: ${{ matrix.version }}
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
variant: ${{ needs.load_vars.outputs.VARIANT }}
|
variant: ${{ needs.load_vars.outputs.VARIANT }}
|
||||||
flatpak_remote_refs_dir: /github/workspace/${{ needs.load_vars.outputs.FLATPAK_REMOTE_REFS_DIR }}
|
flatpak_remote_refs_dir: ${{ inputs.flatpaks_refs_dir }}
|
||||||
secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }}
|
secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }}
|
||||||
enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }}
|
enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }}
|
||||||
iso_name: ${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso
|
iso_name: build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso
|
||||||
|
|
||||||
- name: Save output
|
- name: Save output
|
||||||
id: save_output
|
id: save_output
|
||||||
|
|
@ -258,7 +261,7 @@ jobs:
|
||||||
variant: ${{ needs.load_vars.outputs.VARIANT }}
|
variant: ${{ needs.load_vars.outputs.VARIANT }}
|
||||||
secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }}
|
secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }}
|
||||||
enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }}
|
enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }}
|
||||||
iso_name: ${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso
|
iso_name: build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso
|
||||||
|
|
||||||
- name: Set status
|
- name: Set status
|
||||||
if: inputs.pr && always()
|
if: inputs.pr && always()
|
||||||
|
|
|
||||||
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
|
|
@ -31,8 +31,18 @@ jobs:
|
||||||
pr: ${{ inputs.pr }}
|
pr: ${{ inputs.pr }}
|
||||||
parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Build Container
|
parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Build Container
|
||||||
|
|
||||||
build_iso:
|
build_iso_flatpaks:
|
||||||
name: Build ISO
|
name: Build ISO with Flatpaks
|
||||||
|
needs:
|
||||||
|
- build_container
|
||||||
|
uses: ./.github/workflows/build_iso.yml
|
||||||
|
with:
|
||||||
|
pr: ${{ inputs.pr }}
|
||||||
|
parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Build ISO
|
||||||
|
flatpaks_refs_dir: /github/workspace/flatpak_refs
|
||||||
|
|
||||||
|
build_iso_no_flatpaks:
|
||||||
|
name: Build ISO with Flatpaks Refs
|
||||||
needs:
|
needs:
|
||||||
- build_container
|
- build_container
|
||||||
uses: ./.github/workflows/build_iso.yml
|
uses: ./.github/workflows/build_iso.yml
|
||||||
|
|
@ -43,7 +53,7 @@ jobs:
|
||||||
test_iso:
|
test_iso:
|
||||||
name: Test ISO
|
name: Test ISO
|
||||||
needs:
|
needs:
|
||||||
- build_iso
|
- build_iso_flatpaks
|
||||||
uses: ./.github/workflows/test_iso.yml
|
uses: ./.github/workflows/test_iso.yml
|
||||||
with:
|
with:
|
||||||
pr: ${{ inputs.pr }}
|
pr: ${{ inputs.pr }}
|
||||||
|
|
|
||||||
24
action.yml
24
action.yml
|
|
@ -243,27 +243,3 @@ runs:
|
||||||
with:
|
with:
|
||||||
path: /cache/skopeo
|
path: /cache/skopeo
|
||||||
key: ${{ inputs.skopeo_cache_key || env.skopeo_cache_key }}
|
key: ${{ inputs.skopeo_cache_key || env.skopeo_cache_key }}
|
||||||
|
|
||||||
|
|
||||||
- name: Rename ISO file
|
|
||||||
id: rename_iso
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if [[ ! ( "${{ inputs.iso_name }}" =~ \.iso$ ) ]]
|
|
||||||
then
|
|
||||||
iso_name="${{ inputs.iso_name }}.iso"
|
|
||||||
else
|
|
||||||
iso_name="${{ inputs.iso_name }}"
|
|
||||||
fi
|
|
||||||
if [[ "${{ inputs.iso_name }}" =~ ^/ ]]
|
|
||||||
then
|
|
||||||
full_path="${iso_name}"
|
|
||||||
else
|
|
||||||
full_path="${{ github.workspace }}/${iso_name}"
|
|
||||||
fi
|
|
||||||
mv ${{ github.workspace }}/build/deploy.iso ${full_path} || true
|
|
||||||
cd $(dirname ${full_path})
|
|
||||||
iso_fn=$(basename ${iso_name})
|
|
||||||
sha256sum ${iso_fn} > ${iso_fn}-CHECKSUM
|
|
||||||
echo "iso_path=${full_path}" >> $GITHUB_OUTPUT
|
|
||||||
echo "iso_name=${iso_fn}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue