add build step in fedora job
This commit is contained in:
parent
80eae5d82e
commit
025f265705
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build-fedora:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -18,21 +18,38 @@ jobs:
|
|||||||
SSH_AUTH_SOCK: /tmp/ssh.sock
|
SSH_AUTH_SOCK: /tmp/ssh.sock
|
||||||
ENVIRONMENT: dev
|
ENVIRONMENT: dev
|
||||||
volumes:
|
volumes:
|
||||||
|
- "/etc/timezone:/etc/timezone:ro"
|
||||||
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
- "/etc/gitconfig:/etc/gitconfig:ro"
|
- "/etc/gitconfig:/etc/gitconfig:ro"
|
||||||
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
|
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
|
||||||
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
|
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
|
||||||
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
|
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
|
||||||
options: --cpus 10
|
- "/etc/ssl/certs:/etc/ssl/certs:ro"
|
||||||
|
options: --cpus 4
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- run: dnf install -y nodejs git make
|
||||||
- run: dnf install -y dnf-plugins-core rpm-build rpmdevtools
|
- uses: actions/checkout@v3
|
||||||
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
with:
|
||||||
- run: dnf builddep -y build/jx.spec
|
fetch-depth: 0
|
||||||
- run: make rpm
|
- run: dnf install -y dnf-plugins-core rpm-build rpmdevtools
|
||||||
- uses: ncipollo/release-action@v1
|
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
||||||
with:
|
- run: dnf builddep -y build/jx.spec
|
||||||
artifacts: "jx,/root/rpmbuild/**/*.rpm"
|
- run: make build
|
||||||
build-focal:
|
- run: make rpm
|
||||||
|
- name: Archive binary
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: "jx-fedora-40"
|
||||||
|
path: "jx"
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: "RPMS"
|
||||||
|
path: "/root/rpmbuild/**/*.rpm"
|
||||||
|
- uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: "jx,/root/rpmbuild/**/*.rpm"
|
||||||
|
- run: echo "This job's status is ${{ job.status }}."
|
||||||
|
build-ubuntu-focal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -42,18 +59,28 @@ jobs:
|
|||||||
GOPATH: /
|
GOPATH: /
|
||||||
SSH_AUTH_SOCK: /tmp/ssh.sock
|
SSH_AUTH_SOCK: /tmp/ssh.sock
|
||||||
ENVIRONMENT: dev
|
ENVIRONMENT: dev
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
TZ: America/Los_Angeles
|
||||||
volumes:
|
volumes:
|
||||||
- "/etc/gitconfig:/etc/gitconfig:ro"
|
- "/etc/gitconfig:/etc/gitconfig:ro"
|
||||||
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
|
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
|
||||||
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
|
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
|
||||||
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
|
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
|
||||||
options: --cpus 10
|
options: --cpus 4
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- run: apt-get -y update && apt-get install -y tzdata
|
||||||
- run: make build-deps
|
- run: apt-get install -y nodejs git make
|
||||||
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
- uses: actions/checkout@v3
|
||||||
- run: make build
|
with:
|
||||||
- run: make deb
|
fetch-depth: 0
|
||||||
- uses: ncipollo/release-action@v1
|
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
||||||
with:
|
- run: make ubuntu-deps
|
||||||
artifacts: "jx"
|
- run: make build
|
||||||
|
- run: make deb
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: "jx-ubuntu-focal"
|
||||||
|
path: "jx"
|
||||||
|
- uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: "jx"
|
||||||
|
@ -80,6 +80,7 @@ jobs:
|
|||||||
- run: dnf install -y dnf-plugins-core rpm-build rpmdevtools
|
- run: dnf install -y dnf-plugins-core rpm-build rpmdevtools
|
||||||
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
||||||
- run: dnf builddep -y build/jx.spec
|
- run: dnf builddep -y build/jx.spec
|
||||||
|
- run: make build
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: |
|
run: |
|
||||||
make rpm
|
make rpm
|
||||||
|
Loading…
Reference in New Issue
Block a user