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 2a123a3
Showing 1 changed file with 36 additions and 8 deletions.
44 changes: 36 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,53 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true

strategy:
matrix:
arch: ['arm64', 'armhf', 'armel', 'amd64', 'i386']
arch: ['arm64', 'armhf', 'armel', 'amd64', 'i386', 'mipsel', 'mips64el']

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
name: sysroot-${{ matrix.arch }}
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:
merge-multiple: true
path: out/sysroot-build/bullseye

- name: Generate sysroots.json
env:
SKIP_SYSROOT_BUILD: true
run: |
python build/linux/sysroot_scripts/build_and_upload.py
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
build/linux/sysroot_scripts/sysroots.json
out/sysroot-build/bullseye/*_sysroot.tar.xz

0 comments on commit 2a123a3

Please sign in to comment.