-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DO NOT MERGE: temp for testing noble against staging using CI
- Loading branch information
1 parent
b238659
commit 03cc5f3
Showing
2 changed files
with
5 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,42 +20,6 @@ jobs: | |
uses: ./.github/workflows/check-secrets-available.yaml | ||
secrets: | ||
SECRET_TO_CHECK: '${{ secrets.PYCLOUDLIB_CONFIG_CONTENTS }}' | ||
package-builds: | ||
name: Packaging | ||
needs: check-secrets | ||
if: ${{ needs.check-secrets.outputs.has-secrets == 'true' }} | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
release: ['xenial', 'bionic', 'focal', 'jammy', 'mantic'] # , 'noble'] TODO flake8 is broken in noble as of Feb 21 2024. Add back once python3-flake8 >6 (currently in -proposed) gets into noble | ||
steps: | ||
- name: Prepare build tools | ||
env: | ||
DEBFULLNAME: GitHub CI Auto Builder | ||
DEBEMAIL: [email protected] | ||
run: | | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends sbuild schroot ubuntu-dev-tools debootstrap git-buildpackage | ||
sudo sbuild-adduser $USER | ||
cp /usr/share/doc/sbuild/examples/example.sbuildrc /home/$USER/.sbuildrc | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
- name: Build package | ||
env: | ||
DEBFULLNAME: GitHub CI Auto Builder | ||
DEBEMAIL: [email protected] | ||
run: | | ||
gbp dch --ignore-branch --snapshot --distribution=${{ matrix.release }} | ||
dch --local=~${{ matrix.release }} "" | ||
sg sbuild -c "mk-sbuild --skip-proposed ${{ matrix.release }}" | ||
sg sbuild -c "sbuild --dist='${{ matrix.release }}' --resolve-alternatives --no-clean-source --nolog --verbose --no-run-lintian --build-dir='${{ runner.temp }}'" | ||
mv ../*.deb '${{ runner.temp }}' # Workaround for Debbug: #990734, drop in Jammy | ||
- name: Archive debs as artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'ci-debs-${{ matrix.release }}' | ||
path: '${{ runner.temp }}/*.deb' | ||
retention-days: 3 | ||
integration-tests: | ||
name: Integration | ||
needs: package-builds | ||
|
@@ -65,23 +29,9 @@ jobs: | |
# as much information as possible from them. | ||
fail-fast: false | ||
matrix: | ||
release: ['bionic', 'focal', 'jammy', 'mantic', 'noble'] | ||
release: ['noble'] | ||
platform: ['lxd-container'] | ||
host_os: ['ubuntu-22.04'] | ||
include: | ||
# xenial lxd containers dont work on hosts >20.04 | ||
- release: xenial | ||
platform: lxd-container | ||
host_os: ubuntu-20.04 | ||
- release: bionic | ||
platform: aws.pro | ||
host_os: ubuntu-22.04 | ||
- release: bionic | ||
platform: gcp.pro | ||
host_os: ubuntu-22.04 | ||
- release: bionic | ||
platform: aws.pro-fips | ||
host_os: ubuntu-22.04 | ||
steps: | ||
- name: Prepare test tools | ||
run: | | ||
|
@@ -119,7 +69,7 @@ jobs: | |
UACLIENT_BEHAVE_DEBS_PATH: '${{ runner.temp }}' | ||
UACLIENT_BEHAVE_ARTIFACT_DIR: '${{ runner.temp }}/artifacts/behave-${{ matrix.platform }}-${{ matrix.release }}' | ||
UACLIENT_BEHAVE_SNAPSHOT_STRATEGY: '1' | ||
UACLIENT_BEHAVE_INSTALL_FROM: 'prebuilt' | ||
UACLIENT_BEHAVE_INSTALL_FROM: 'local' | ||
UACLIENT_BEHAVE_CONTRACT_TOKEN: '${{ secrets.UACLIENT_BEHAVE_CONTRACT_TOKEN }}' | ||
UACLIENT_BEHAVE_CONTRACT_TOKEN_STAGING: '${{ secrets.UACLIENT_BEHAVE_CONTRACT_TOKEN_STAGING }}' | ||
UACLIENT_BEHAVE_CONTRACT_TOKEN_STAGING_EXPIRED: '${{ secrets.UACLIENT_BEHAVE_CONTRACT_TOKEN_STAGING_EXPIRED }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters