diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 7dd3cc7..aa36609 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -93,3 +93,33 @@ jobs: with: path: "/root/rpmbuild/**/*.rpm" - run: echo "This job's status is ${{ job.status }}." + build-focal: + runs-on: ubuntu-latest + permissions: + contents: write + container: + image: ubuntu:focal + env: + GOPATH: / + SSH_AUTH_SOCK: /tmp/ssh.sock + ENVIRONMENT: dev + volumes: + - "/etc/timezone:/etc/timezone:ro" + - "/etc/localtime:/etc/localtime:ro" + - "/etc/gitconfig:/etc/gitconfig:ro" + - "/${{ env.SSH_AUTH_SOCK }}:/tmp/ssh.sock" + - "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts" + - "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro" + - "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro" + - "/etc/ssl/certs:/etc/ssl/certs:ro" + options: --cpus 10 + steps: + - uses: actions/checkout@v3 + - run: make build-deps + - run: make build + - run: make deb + - uses: actions/upload-artifact@v3 + with: + name: "ubuntu/focal/jx" + path: "jx" +