test build job
Some checks failed
Lint / golangci-lint (push) Has been cancelled

This commit is contained in:
Matthew Rich 2024-05-26 14:13:18 -07:00
parent d3a52373f1
commit aee0bf1515

View File

@ -55,3 +55,46 @@ jobs:
name: jx name: jx
path: jx path: jx
- run: echo "This job's status is ${{ job.status }}." - run: echo "This job's status is ${{ job.status }}."
build:
runs-on: ubuntu-latest
container:
image: fedora:latest
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:
- run: dnf install -y nodejs
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- run: dnf install -y dnf-plugins-core
- run: dnf builddep build/jx.spec
- name: Run build
run: |
make rpm
- name: Archive binary
uses: actions/upload-artifact@v3
with:
name: jx
path: jx
- uses: actions/upload-artifact@v3
with:
path: "/root/rpmbuild/**/*.rpm"
- uses: ncipollo/release-action@v1
with:
artifacts:
- "jx"
- "/root/rpmbuild/SRPMS/jx-${{ env.VERSION }}-1.fc40.src.rpm"
- "/root/rpmbuild/RPMS/x86_64/jx-${{ env.VERSION }}-1.fc40.x86_64.rpm"
- run: echo "This job's status is ${{ job.status }}."