Skip to content

Commit

Permalink
chore: full build
Browse files Browse the repository at this point in the history
  • Loading branch information
eenagy committed May 3, 2024
1 parent 05a148e commit a47aee9
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/pkgbuilder-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,27 @@ jobs:
run: |
pkg-builder package --run-piuparts false --run-autopkgtests false --run-lintian false ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml
- name: lintian
run: pkg-builder lintian ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml


- name: piuparts
run: |
# Install debian-archive-keyring but fails, as it is already installed
# sudo apt-get install -y debian-archive-keyring
${HOME}/.local/bin/pkg-builder piuparts ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml
- name: autopkgtests
run: |
# Copy files under root
sudo cp -R ${HOME}/.pkg-builder /root
sudo ${HOME}/.local/bin/pkg-builder autopkgtest ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml
- name: verify
run: |
${HOME}/.local/bin/pkg-builder verify --config-file ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml --verify-config-file ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder-verify.toml --no-package true # do not need to repackage it, as we run it multiple times on CI, and hashes should come from locally built sources
- name: upload cleanup
run: |
version=$(echo ${{inputs.package-version-with-revision}} | cut -d'-' -f1)
Expand All @@ -89,35 +110,15 @@ jobs:
cd /home/runner/.pkg-builder/packages/${{inputs.package-name}}
rm *:*
rm *dbgsym* || true # possible there is none

# This should come after verify, but sometimes it is good to have it, to check why the verify fails
# This should come after verify, but sometimes it is good to have it, to check why the verify fails
- name: Save results
uses: actions/upload-artifact@v4
with:
name: ${{inputs.package-name}}-${{ inputs.codename }}-${{ inputs.package-version-with-revision }}
path: /home/runner/.pkg-builder/packages/${{inputs.package-name}}

# - name: lintian
# run: pkg-builder lintian ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml


# - name: piuparts
# run: |
# # Install debian-archive-keyring but fails, as it is already installed
# # sudo apt-get install -y debian-archive-keyring
# ${HOME}/.local/bin/pkg-builder piuparts ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml

# - name: autopkgtests
# run: |
# # Copy files under root
# sudo cp -R ${HOME}/.pkg-builder /root
# sudo ${HOME}/.local/bin/pkg-builder autopkgtest ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml

- name: verify
run: |
${HOME}/.local/bin/pkg-builder verify --config-file ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml --verify-config-file ${{ inputs.codename }}/x86_64/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder-verify.toml --no-package true # do not need to repackage it, as we run it multiple times on CI, and hashes should come from locally built sources



Expand Down

0 comments on commit a47aee9

Please sign in to comment.