-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,12 @@ on: | |
branches: [main] | ||
pull_request: | ||
branches: ["**"] | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: true | ||
max-parallel: 2 | ||
|
@@ -64,15 +65,16 @@ jobs: | |
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
max-parallel: 2 | ||
matrix: | ||
go: ["stable"] | ||
os: ["arm-4core-linux", "ubuntu-22.04"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install dependencies | ||
run: sudo apt-get install -y llvm clang dwz cmake curl unzip | ||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends gcc make llvm clang dwz cmake curl unzip | ||
- name: Install Zydis | ||
shell: bash | ||
run: | | ||
|
@@ -98,11 +100,13 @@ jobs: | |
- name: Install gRPC dependencies | ||
env: | ||
PB_URL: "https://github.com/protocolbuffers/protobuf/releases/download/v24.4/" | ||
PB_FILE: "protoc-24.4-linux-x86_64.zip" | ||
PB_FILE: "protoc-24.4-linux-%arch%.zip" | ||
INSTALL_DIR: "/usr/local" | ||
run: | | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
ARCH=$(uname -m | sed 's/aarch64/aarch_64/') | ||
PB_FILE=$(echo $PB_FILE | sed "s/%arch%/$ARCH/g") | ||
curl -LO "$PB_URL/$PB_FILE" | ||
sudo unzip "$PB_FILE" -d "$INSTALL_DIR" 'bin/*' 'include/*' | ||
sudo chmod +xr "$INSTALL_DIR/bin/protoc" | ||
|
@@ -114,7 +118,9 @@ jobs: | |
- name: Build | ||
run: | | ||
echo $PATH | ||
make test | ||
make | ||
- name: Tests | ||
# Tests fail on arm | ||
if: matrix.os != 'arm-4core-linux' | ||
run: | | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [nsavoire/ci_build] | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: write | ||
|
||
steps: | ||
- name: Build | ||
uses: ./.github/actions/build | ||
# - name: Create Release | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# artifacts: "build/libs/dogburp-v*.jar" | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# allowUpdates: true | ||
# omitBody: true |