Use cmd for all tasks and rework upload task #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
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 |