Skip to content

Update CI #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,25 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
uses: actions/github-script@v6
with:
script: console.log(JSON.stringify(context, null, 2))
- name: Translate Repo Name For Build Tools filename_prefix
id: repo-name
run: |
echo ::set-output name=repo-name::$(
echo "repo-name=$(
echo ${{ github.repository }} |
awk -F '\/' '{ print tolower($2) }' |
tr '_' '-'
)
)" >> $GITHUB_OUTPUT
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Versions
run: |
python3 --version
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Install deps
run: |
sudo apt-get install gettext
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ jobs:
if: github.repository_owner == 'adafruit'
runs-on: ubuntu-20.04
steps:
- name: Dump GitHub context
uses: actions/github-script@v6
with:
script: console.log(JSON.stringify(context, null, 2))
- uses: actions/checkout@v2.2.0
- uses: actions/checkout@v3

- name: checkout submodules
run: git submodule update --init --jobs 16 --depth 1
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down
26 changes: 9 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,37 @@ jobs:
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
uses: actions/github-script@v6
with:
script: console.log(JSON.stringify(context, null, 2))
- name: Translate Repo Name For Build Tools filename_prefix
id: repo-name
run: |
echo ::set-output name=repo-name::$(
echo "repo-name=$(
echo ${{ github.repository }} |
awk -F '\/' '{ print tolower($2) }' |
tr '_' '-'
)
)" >> $GITHUB_OUTPUT
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Versions
run: |
python3 --version
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Install deps
run: |
sudo apt-get install gettext
pip install -r requirements.txt
- name: Build assets
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2 --package_folder_prefix "adafruit_, asyncio"
- name: Upload Release Assets
# the 'official' actions version does not yet support dynamically
# supplying asset names to upload. @csexton's version chosen based on
# discussion in the issue below, as its the simplest to implement and
# allows for selecting files with a pattern.
# https://github.com/actions/upload-release-asset/issues/4
#uses: actions/upload-release-asset@v1.0.1
uses: csexton/release-asset-action@master
uses: shogo82148/actions-upload-release-asset@v1
with:
pattern: "bundles/*"
github-token: ${{ secrets.GITHUB_TOKEN }}
asset_path: "bundles/*"
github_token: ${{ secrets.GITHUB_TOKEN }}
upload_url: ${{ github.event.release.upload_url }}
- name: Upload Assets To AWS S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down