Skip to content

Commit

Permalink
Update sysroots.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Mar 31, 2024
1 parent 972c2a2 commit 61cb9ed
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,44 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Deps
run: sudo apt install -y binutils-arm-linux-gnueabi binutils-arm-linux-gnueabihf binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu

- name: Build
run: ./build/linux/sysroot_scripts/sysroot-creator.sh build ${{ matrix.arch }}

- name: Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
- name: Upload
uses: actions/upload-artifact@v4
with:
draft: true
files: out/sysroot-build/bullseye/*_sysroot.tar.xz
path: out/sysroot-build/bullseye/*_sysroot.tar.xz
retention-days: 1

release:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download Files
uses: actions/download-artifact@v4
with:
path: out/sysroot-build/bullseye

- name: Release
uses: ncipollo/release-action@v1
with:
draft: true
artifacts: out/sysroot-build/bullseye/*_sysroot.tar.xz
artifactErrorsFailBuild: true

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
build/linux/sysroot_scripts/sysroots.json
out/sysroot-build/bullseye/*_sysroot.tar.xz

0 comments on commit 61cb9ed

Please sign in to comment.