Add 13.4-STABLE #107
Workflow file for this run
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: image-build | |
on: | |
push: | |
pull_request: | |
jobs: | |
qemu-vm: | |
name: QEMU | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [13.3-RELEASE, 14.0-RELEASE, 14.1-RELEASE, 13.4-STABLE, 14.1-STABLE, 15.0-CURRENT] | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup SSH | |
run: | | |
mkdir -p $HOME/.ssh | |
echo "${{ secrets.AUTHORIZED_KEYS }}" > $HOME/.ssh/authorized_keys | |
echo "${{ secrets.SSH_KEY }}" > $HOME/.ssh/id_ed25519 | |
echo "${{ secrets.KNOWN_HOSTS }}" > $HOME/.ssh/known_hosts | |
chmod 600 $HOME/.ssh/id_ed25519 | |
R=`shuf -n 1 -i 10000-50000` | |
echo "SSH Port $R" | |
ssh -x -N -C -f -R $R:127.0.0.1:22 mcmilk@${{ secrets.SOME_HOST }} | |
- name: Setup QEMU | |
timeout-minutes: 5 | |
run: .github/workflows/scripts/qemu-1-setup.sh | |
- name: Start build machine | |
timeout-minutes: 5 | |
run: .github/workflows/scripts/qemu-2-start.sh ${{ matrix.os }} | |
- name: Build image | |
timeout-minutes: 200 | |
run: | | |
echo "ConnectTimeout 1" >> $HOME/.ssh/config | |
echo "StrictHostKeyChecking no" >> $HOME/.ssh/config | |
while pidof /usr/bin/qemu-system-x86_64 >/dev/null; do | |
ssh 2>/dev/null [email protected] "uname -a" && break | |
done | |
scp .github/workflows/scripts/qemu-3-build.sh [email protected]:qemu-3-build.sh | |
PID=`pidof /usr/bin/qemu-system-x86_64` | |
ssh [email protected] 'sudo $HOME/qemu-3-build.sh' ${{ matrix.os }} | |
mkdir -p release | |
scp [email protected]:amd64-freebsd-${{ matrix.os }}.qcow2.zst . | |
- name: Upload release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: amd64-freebsd-${{ matrix.os }}.qcow2.zst |