Skip to content

Use cmd for all tasks and rework upload task #22

Use cmd for all tasks and rework upload task

Use cmd for all tasks and rework upload task #22

name: Build Toolchain Workflow (Bookworm)
on:
push:
branches:
- main
paths:
- 'source/**'
pull_request:
branches:
- main
paths:
- 'source/**'
jobs:
build:
runs-on: ubuntu-latest
container:
image: debian:bookworm
strategy:

Check failure on line 20 in .github/workflows/build-toolchain.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-toolchain.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
matrix:
architecture: [arm64, amd64]
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends binutils apt-utils dpkg-dev debian-archive-keyring equivs tar jq git devscripts build-essential lintian
- name: Build libobjc2
run: |
./cmd/main.sh --release bookworm --architecture ${{ matrix.architecture }} --no-sandbox -o libobjc2
env:
DEBIAN_FRONTEND: noninteractive
- name: Archive and Upload Resulting Packages
run: |
cd build/debian
tar -cvzf packages-${{ matrix.architecture }}.tar.gz $(find . -type f \( -name "*.deb" -o -name "*.changes" -o -name "*.dsc" -o -name "*.ddeb" \))
uses: actions/upload-artifact@v3
with:
name: packages-${{ matrix.architecture }}
path: build/debian/packages-${{ matrix.architecture }}.tar.gz