name: Debian build run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀 on: - push - workflow_dispatch jobs: build-ubuntu: runs-on: ubuntu-latest branches: - 'master' - 'zx' steps: - name: Checking environment continue-on-error: true run: printenv - name: Installing build-essentials continue-on-error: false run: | apt update apt install -y build-essential fakeroot devscripts debhelper pkg-config --no-install-recommends - name: Installing dependencies continue-on-error: false run: | echo '---- bison ----' apt install -y bison echo '---- tcl ------' apt install -y tcl - name: Cloning source uses: actions/checkout@v4 - name: Getting version info run: | echo "BFORCE_VER=$(cat ${{ env.GITHUB_WORKSPACE }}/source/.version)-$(date +%Y%m%d)" >> $GITHUB_ENV - name: Building package continue-on-error: false run: | pwd echo '---------------------' cd ${GITHUB_WORKSPACE}/debian ls -l debuild -us -uc -b echo '---build complete---' ls -l ${{ env.GITHUB_WORKSPACE }}/../ - name: Collecting artifacts run: | mkdir -pv ${{ env.GITHUB_WORKSPACE }}/artifacts mv -v ${{ env.GITHUB_WORKSPACE }}/../*.deb ${{ env.GITHUB_WORKSPACE }}/artifacts/ - name: Try to upload artifacts uses: actions/upload-artifact@v3 with: name: bforce-${{ env.BFORCE_VER }}-Ubuntu path: ${{ env.GITHUB_WORKSPACE }}/artifacts/bforce*.deb - run: echo "This job's over"