Working CI with non-gui phases #12
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 | |
strategy: | |
matrix: | |
architecture: [amd64] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends pbuilder binutils apt-utils dpkg-dev debian-archive-keyring equivs tar jq git | |
- name: Build libobjc2 | |
run: | | |
sudo ./cmd/main.sh --release bookworm --architecture ${{ matrix.architecture }} -o libobjc2 --extract-only | |
cd build/debian/libobjc2 | |
sudo dpkg-source --build . | |
sudo debuild -us -uc | |
dpkg -i ../libobjc2*.deb | |
cd ../../.. | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: List Resulting Packages | |
run: | | |
cd build/debian | |
find . -type f \( -name "*.deb" -o -name "*.changes" -o -name "*.dsc" \) -exec ls -l {} \; | |
- name: Archive Packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: packages-${{ matrix.architecture }} | |
path: /var/cache/pbuilder/result/*.{deb,changes,dsc} |