-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the information in step (invalid yaml else) and documentation
- Loading branch information
Showing
2 changed files
with
23 additions
and
5 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 |
---|---|---|
|
@@ -47,23 +47,31 @@ jobs: | |
cd checkbox-core-snap/ | ||
sudo apt update && sudo apt install -qq -y python3-setuptools-scm | ||
./prepare.sh $SERIES | ||
- name: add LP credentials | ||
- name: Add LP credentials | ||
run: | | ||
mkdir -p ~/.local/share/snapcraft/provider/launchpad/ | ||
echo '${{ secrets.LP_CREDS }}' > ~/.local/share/snapcraft/provider/launchpad/credentials | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Certification bot" | ||
- name: Print Launchpad build repository | ||
run: | | ||
# snapcraft remote-build will create a repository with the name decided by the --build-id arg | ||
# it is useful to have this URL to debug builds, note that it will not change if the same workflow is re-run | ||
# as the run_id will not change | ||
echo "Building at: https://git.launchpad.net/~ce-certification-qa/+git/checkbox${{ matrix.releases }}-${{ matrix.arch }}-${{ github.run_id }}" | ||
- uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 | ||
name: Building at: https://git.launchpad.net/~ce-certification-qa/+git/checkbox${{ matrix.releases }}-${{ matrix.arch }}-${{ github.run_id }} | ||
name: Build Snap | ||
with: | ||
action: Hook25/action-build@707dce252c4f367b6c1afe61ed577f7413cf7912 | ||
attempt_delay: 600000 # 10min | ||
attempt_limit: 3 | ||
with: | | ||
path: checkbox-core-snap/series${{ matrix.releases }} | ||
snapcraft-channel: 7.x/stable | ||
# Note: if you change this --build-id arg, change it above as well and keep them consisten | ||
snapcraft-args: remote-build --build-on ${{ matrix.arch }} --launchpad-accept-public-upload --build-id checkbox${{ matrix.releases }}-${{ matrix.arch }}-${{ github.run_id }} | ||
- uses: actions/upload-artifact@v3 | ||
name: Upload logs on failure | ||
if: failure() | ||
with: | ||
name: snapcraft-log-series${{ matrix.releases }} | ||
|
@@ -72,6 +80,7 @@ jobs: | |
/home/runner/.local/state/snapcraft/log/ | ||
checkbox-core-snap/series${{ matrix.releases }}/checkbox*.txt | ||
- uses: actions/upload-artifact@v3 | ||
name: Upload snaps as artifact | ||
with: | ||
name: series${{ matrix.releases }} | ||
path: checkbox-core-snap/series${{ matrix.releases }}/*.snap | ||
|
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 |
---|---|---|
|
@@ -48,23 +48,31 @@ jobs: | |
cd checkbox-snap/ | ||
sudo apt update && sudo apt install -qq -y python3-setuptools-scm | ||
./prepare_${{ matrix.type }}.sh $SERIES | ||
- name: add LP credentials | ||
- name: Add LP credentials | ||
run: | | ||
mkdir -p ~/.local/share/snapcraft/provider/launchpad/ | ||
echo '${{ secrets.LP_CREDS }}' > ~/.local/share/snapcraft/provider/launchpad/credentials | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Certification bot" | ||
- name: Print Launchpad build repository | ||
run: | | ||
# snapcraft remote-build will create a repository with the name decided by the --build-id arg | ||
# it is useful to have this URL to debug builds, note that it will not change if the same workflow is re-run | ||
# as the run_id will not change | ||
echo "Building at: https://git.launchpad.net/~ce-certification-qa/+git/checkbox-${{ matrix.type }}${{ matrix.releases }}-${{ matrix.arch }}-${{ github.run_id }}" | ||
- uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 | ||
name: Building at: https://git.launchpad.net/~ce-certification-qa/+git/checkbox-${{ matrix.type }}${{ matrix.releases }}-${{ matrix.arch }}-${{ github.run_id }} | ||
name: Build Snap | ||
with: | ||
action: Hook25/action-build@707dce252c4f367b6c1afe61ed577f7413cf7912 | ||
attempt_delay: 600000 # 10min | ||
attempt_limit: 3 | ||
with: | | ||
path: checkbox-snap/series_${{ matrix.type }}${{ matrix.releases }} | ||
snapcraft-channel: 7.x/stable | ||
# Note: if you change this --build-id arg, change it above as well and keep them consisten | ||
snapcraft-args: remote-build --build-on ${{ matrix.arch }} --launchpad-accept-public-upload --build-id checkbox-${{ matrix.type }}${{ matrix.releases }}-${{ matrix.arch }}-${{ github.run_id }} | ||
- uses: actions/upload-artifact@v3 | ||
name: Upload logs on failure | ||
if: failure() | ||
with: | ||
name: snapcraft-log-series-${{ matrix.type }}${{ matrix.releases }} | ||
|
@@ -73,11 +81,12 @@ jobs: | |
/home/runner/.local/state/snapcraft/log/ | ||
checkbox-snap/series_${{ matrix.type }}${{ matrix.releases }}/checkbox*.txt | ||
- uses: actions/upload-artifact@v3 | ||
name: Upload snaps as artifact | ||
with: | ||
name: series_${{ matrix.type }}${{ matrix.releases }} | ||
path: checkbox-snap/series_${{ matrix.type }}${{ matrix.releases }}/*.snap | ||
- uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 | ||
name: Upload checkbox snaps to the store | ||
name: Upload Snap to the store | ||
with: | ||
attempt_delay: 600000 # 10min | ||
attempt_limit: 3 | ||
|