mirror of
https://github.com/edgelesssys/constellation.git
synced 2026-01-02 00:10:37 -05:00
Add disk-mapper to build pipeline
Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
5548cde22e
commit
dfee5910b3
3 changed files with 35 additions and 5 deletions
9
.github/workflows/build-coreos-debug.yml
vendored
9
.github/workflows/build-coreos-debug.yml
vendored
|
|
@ -57,10 +57,19 @@ jobs:
|
|||
with:
|
||||
go-version: "1.18"
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y pkg-config libcryptsetup12 libcryptsetup-dev
|
||||
|
||||
- name: "Compile debugd"
|
||||
run: GOCACHE=/home/github-actions-runner-user/.cache/go-build GOPATH=/home/github-actions-runner-user/go GOPRIVATE=github.com/edgelesssys GOMODCACHE=/home/github-actions-runner-user/.cache/go-mod go build -o constellation-debugd debugd.go
|
||||
working-directory: ${{ github.workspace }}/debugd/debugd/cmd/debugd
|
||||
|
||||
- name: "Compile disk-mapper"
|
||||
run: |
|
||||
mkdir -p ${{ github.workspace }}/build
|
||||
GOCACHE=/home/github-actions-runner-user/.cache/go-build GOPATH=/home/github-actions-runner-user/go GOPRIVATE=github.com/edgelesssys GOMODCACHE=/home/github-actions-runner-user/.cache/go-mod go build -o ${{ github.workspace }}/build/disk-mapper -ldflags "-s -w"
|
||||
working-directory: ${{ github.workspace }}/state/cmd
|
||||
|
||||
- name: "Store GH token to be mounted by cosa"
|
||||
run: echo "machine github.com login api password ${{ secrets.CI_GITHUB_REPOSITORY }}" > /tmp/.netrc
|
||||
|
||||
|
|
|
|||
14
.github/workflows/build-coreos.yml
vendored
14
.github/workflows/build-coreos.yml
vendored
|
|
@ -77,6 +77,20 @@ jobs:
|
|||
with:
|
||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||
|
||||
- name: Setup Go environment
|
||||
uses: actions/setup-go@v2.2.0
|
||||
with:
|
||||
go-version: "1.18"
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y pkg-config libcryptsetup12 libcryptsetup-dev
|
||||
|
||||
- name: "Compile disk-mapper"
|
||||
run: |
|
||||
mkdir -p ${{ github.workspace }}/build
|
||||
GOCACHE=/home/github-actions-runner-user/.cache/go-build GOPATH=/home/github-actions-runner-user/go GOPRIVATE=github.com/edgelesssys GOMODCACHE=/home/github-actions-runner-user/.cache/go-mod go build -o ${{ github.workspace }}/build/disk-mapper -ldflags "-s -w"
|
||||
working-directory: ${{ github.workspace }}/state/cmd
|
||||
|
||||
- name: "Store GH token to be mounted by cosa"
|
||||
run: echo "machine github.com login api password ${{ secrets.CI_GITHUB_REPOSITORY }}" > /tmp/.netrc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue