Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run on self-hosted #1

Merged
merged 12 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ jobs:
- self-hosted
- arm64
- arch: amd64
runner: ubuntu-latest
runner:
- arc
- self-hosted
- x64
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0
- uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
- name: Run builder
run: make
env:
ARCH: ${{ matrix.arch }}
BORINGSSL_VERSION: ${{ inputs.boringssl-version != '' && inputs.boringssl-version || '853ca1ea1168dff08011e5d42d94609cc0ca2e27' }}
BORINGSSL_SHA256: ${{ inputs.boringssl-sha256 != '' && inputs.boringssl-sha256 || 'a4d069ccef6f3c7bc0c68de82b91414f05cb817494cd1ab483dcf3368883c7c2' }}
BORINGSSL_SOURCE: ${{ inputs.boringssl-source != '' && inputs.boringssl-source || 'https://commondatastorage.googleapis.com/chromium-boringssl-fips/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27.tar.xz' }}
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v2.3.1
with:
path: boringssl-fips-${{ env.BORINGSSL_VERSION }}-${{ matrix.arch }}.tar.xz
name: boringssl-fips-${{ matrix.arch }}
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,29 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
arch:
- arm64
- amd64
include:
- arch: arm64
runner:
- self-hosted
- arm64
- arch: amd64
runner:
- arc
- self-hosted
- x64
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0
- uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
- name: Run builder
run: make
env:
TAG: ${{ github.ref_name || github.ref }}
ARCH: ${{ matrix.arch }}
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v2.3.1
with:
path: boringssl-fips-${{ env.TAG }}-${{ matrix.arch }}.tar.xz
name: boringssl-fips-${{ matrix.arch }}
Expand All @@ -40,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
- uses: actions/download-artifact@f023be2c48cc18debc3bacd34cb396e0295e2869 # v2.1.0
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
tag_name: ${{ github.ref_name || github.ref }}
Expand Down
3 changes: 1 addition & 2 deletions tools/builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y gcc g++ xz-utils python3 libncurses5 curl
FROM index.docker.io/dio123/boringssl-fips-builder@sha256:d430e7f9f5ab26aae829b9f9d4327e20d2c240d4997aeae629132d4c0f267538
COPY ./tools/build.sh /var/local/build.sh
RUN /var/local/build.sh
Loading