build is restricted to static alpine/musl
This commit is contained in:
parent
09a695d1d9
commit
71a074ca05
@ -54,75 +54,3 @@ jobs:
|
|||||||
name: "jx-alpine"
|
name: "jx-alpine"
|
||||||
path: "jx"
|
path: "jx"
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
- run: echo "This job's status is ${{ job.status }}."
|
||||||
build-fedora:
|
|
||||||
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"
|
|
||||||
- "/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 4
|
|
||||||
steps:
|
|
||||||
- run: dnf install -y nodejs git make
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- run: dnf install -y dnf-plugins-core rpm-build rpmdevtools
|
|
||||||
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
|
||||||
- run: dnf builddep -y build/jx.spec
|
|
||||||
- run: make build
|
|
||||||
- name: Run build
|
|
||||||
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"
|
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
|
||||||
build-ubuntu-focal:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
container:
|
|
||||||
image: ubuntu:focal
|
|
||||||
env:
|
|
||||||
GOPATH: /
|
|
||||||
SSH_AUTH_SOCK: /tmp/ssh.sock
|
|
||||||
ENVIRONMENT: dev
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
TZ: America/Los_Angeles
|
|
||||||
volumes:
|
|
||||||
- "/etc/gitconfig:/etc/gitconfig:ro"
|
|
||||||
- "/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"
|
|
||||||
options: --cpus 4
|
|
||||||
steps:
|
|
||||||
- run: apt-get -y update && apt-get install -y tzdata
|
|
||||||
- run: apt-get install -y nodejs git make
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
|
|
||||||
- run: make ubuntu-deps
|
|
||||||
- run: make build
|
|
||||||
- run: make deb
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: "jx-ubuntu-focal"
|
|
||||||
path: "jx"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user