Skip to content

Commit

Permalink
Extract toolchain on build
Browse files Browse the repository at this point in the history
  • Loading branch information
dns13 committed Mar 6, 2024
1 parent f787d03 commit 0d1b114
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,20 @@ jobs:
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }} # it will be lowercased internally
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
extract-toolchain:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract toolchain
run: |
docker pull ghcr.io/${{ github.repository }}/latest
docker run --rm -v $(pwd):/data ghcr.io/${{ github.repository }}/latest \
/bin/tar -czvf /data/arm-bemos-linux-musleabihf.tar.gz /opt/x-tools/arm-bemos-linux-musleabihf/
- name: Archive toolchain
uses: actions/upload-artifact@v2
with:
name: toolchain archive
path: arm-bemos-linux-musleabihf.tar.gz

0 comments on commit 0d1b114

Please sign in to comment.