Skip to content

Commit

Permalink
Fix debian build
Browse files Browse the repository at this point in the history
Use github action cross (in both workflows).
The former crago action is archived.
  • Loading branch information
leonnicolas committed Jan 10, 2024
1 parent db080c5 commit b171685
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@ jobs:
uses: actions/checkout@v2
with:
repository: cloudflare/boringtun
- uses: actions-rs/toolchain@v1
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=${{ matrix.target }}
args: --release
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
Expand Down Expand Up @@ -75,7 +70,7 @@ jobs:
context: .
file: ./Dockerfile
platforms: linux/arm64, linux/arm, linux/amd64
push: true
push: ${{github.event_name == 'push'}}
build-args: |
FROM=debian:stable-slim
tags: |-
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/build_alpine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ jobs:
uses: actions/checkout@v2
with:
repository: cloudflare/boringtun
- uses: actions-rs/toolchain@v1
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
args: --release
- uses: actions/upload-artifact@v2
with:
use-cross: true
command: build
args: --release --target=${{ matrix.target }}
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/boringtun-cli
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
Expand Down Expand Up @@ -75,7 +74,7 @@ jobs:
context: .
platforms: linux/arm64, linux/arm, linux/amd64
file: ./Dockerfile
push: true
push: ${{github.event_name == 'push'}}
build-args: |
FROM=alpine:3.17
tags: |-
Expand Down

0 comments on commit b171685

Please sign in to comment.