diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d8e6fc3..fcd5366 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,18 +10,15 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" - name: Set up Python 3.x (Latest) - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Checkout current repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true + show-progress: false - name: Install pre-commit run: pip install pre-commit - name: Run pre-commit diff --git a/build/action.yml b/build/action.yml index 5a8f986..b06ec9c 100644 --- a/build/action.yml +++ b/build/action.yml @@ -15,6 +15,13 @@ inputs: for GitHub releases required: true default: "" + ignore-bundles: + description: | + A comma and space separated list of bundles to be skipped when building. + Valid options are py, mpy, example, and json. For example, to skip + building the MPY and example bundles, this field would be: mpy, example + required: true + default: "" runs: using: "composite" steps: @@ -28,7 +35,7 @@ runs: tr '_' '-' ) >> $GITHUB_OUTPUT - name: Set up Python 3.11 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - name: Versions @@ -36,12 +43,14 @@ runs: run: | python3 --version - name: Checkout Current Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true + show-progress: false - name: Checkout tools repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: + show-progress: false repository: adafruit/actions-ci-circuitpython-libs path: actions-ci - name: Install dependencies @@ -82,9 +91,23 @@ runs: else echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT fi + - name: Add the given bundle ignores + id: ignore-bundles-arg + shell: bash + run: | + if [ "${{ inputs.ignore-bundles }}" == "" ]; then + echo ignore-bundles="" >> $GITHUB_OUTPUT + else + echo ignore-bundles='--ignore "${{ inputs.ignore-bundles }}"' >> $GITHUB_OUTPUT + fi - name: Build assets shell: bash - run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }} + run: | + circuitpython-build-bundles \ + --filename_prefix ${{ steps.repo-name.outputs.repo-name }} \ + --library_location . \ + ${{ steps.package-prefix-arg.outputs.prefix-arg }} \ + ${{ steps.ignore-bundles-arg.outputs.prefix-arg }} - name: Archive bundles uses: actions/upload-artifact@v3 with: diff --git a/release-gh/action.yml b/release-gh/action.yml index 5a68ea4..a71f5c8 100644 --- a/release-gh/action.yml +++ b/release-gh/action.yml @@ -41,7 +41,7 @@ runs: tr '_' '-' ) >> $GITHUB_OUTPUT - name: Set up requested Python version - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - name: Versions @@ -49,12 +49,14 @@ runs: run: | python3 --version - name: Checkout Current Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true + show-progress: false - name: Checkout tools repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: + show-progress: false repository: adafruit/actions-ci-circuitpython-libs path: actions-ci - name: Install deps diff --git a/release-pypi/action.yml b/release-pypi/action.yml index 225a438..74d3a6e 100644 --- a/release-pypi/action.yml +++ b/release-pypi/action.yml @@ -18,7 +18,9 @@ inputs: runs: using: "composite" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + show-progress: false - name: Check For pyproject.toml id: need-pypi shell: bash @@ -26,7 +28,7 @@ runs: echo pyproject-toml=$( find . -wholename './pyproject.toml' ) >> $GITHUB_OUTPUT - name: Set up Python if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - name: Install dependencies