diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ae3a2d8d..2dd06b40 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,8 +17,12 @@ jobs: secrets: inherit release: - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.runs-on }} needs: check + strategy: + fail-fast: false + matrix: + runs-on: [[ubuntu-22.04]] outputs: snap: ${{ steps.build.outputs.snap }} steps: @@ -27,9 +31,11 @@ jobs: fetch-depth: 0 # Complete git history is required to generate the version from git tags. - uses: snapcore/action-build@v1 id: build + - name: Determine system architecture + run: echo "SYSTEM_ARCH=$(uname -m)" >> $GITHUB_ENV - uses: actions/upload-artifact@v4 with: - name: snap + name: snap_${{ env.SYSTEM_ARCH }} path: ${{ steps.build.outputs.snap }} - uses: snapcore/action-publish@v1 env: diff --git a/.gitignore b/.gitignore index b6b25739..042b19d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,43 +1,45 @@ -# This is a template `.gitignore` file for snaps -# This file is managed by bootstack-charms-spec and should not be modified -# within individual snap repos. https://launchpad.net/bootstack-charms-spec +# This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation +# To update the file: +# - Edit it in the canonical/solutions-engineering-automation repository. +# - Open a PR with the changes. +# - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes. -# Byte-compiled / optimized / DLL files +# Python Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class -# Tests files and dir +# Test files and directories .pytest_cache/ .coverage .tox -.venv reports/ **/report/ htmlcov/ .mypy_cache -# Log files -*.log - -# IDEs -.idea/ -.vscode/ - -# vi -.*.swp - -# version data -repo-info +# python virtual environments (for local dev) +.venv +venv +env -# Python builds +# Build artefacts +output/ +.build/ +build/ +*.charm +*.snap +# python build artefacts deb_dist/ dist/ *.egg-info/ -# Snaps -*.snap +# Log files +*.log -# Builds -.build/ -build/ +# general backup files +*~ +*.bak + +# Note: for editor-specific files, please don't add them here, as they are specific to your environment, not the project. +# Instead, consider using a global gitignore on your workstation.