Compare commits
2 Commits
develop
...
parallel-c
Author | SHA1 | Date | |
---|---|---|---|
|
cc1c9763b2 | ||
|
00a8738392 |
24
.github/workflows/pr-pipeline.yaml
vendored
Normal file
24
.github/workflows/pr-pipeline.yaml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: gdb-static-pr-pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
architecture: ["x86_64", "arm", "aarch64", "powerpc", "mips", "mipsel"]
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get install -y wget
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: make build-${{ matrix.architecture }} -j$((`nproc`+1))
|
@ -1,17 +1,15 @@
|
|||||||
name: gdb-static-pipeline
|
name: gdb-static-release-pipeline
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
|
# Use a non-parallel single job pipeline because artifacts weigh too much. Instead,
|
||||||
|
# simply build the files in the same job they are released.
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -26,14 +24,7 @@ jobs:
|
|||||||
- name: Pack
|
- name: Pack
|
||||||
run: make pack
|
run: make pack
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: gdb-static
|
|
||||||
path: build/artifacts/gdb-static*.tar.gz
|
|
||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: build/artifacts/gdb-static*.tar.gz
|
files: build/artifacts/gdb-static*.tar.gz
|
@ -43,7 +43,7 @@ function set_compliation_variables() {
|
|||||||
CROSS=mipsel-linux-gnu-
|
CROSS=mipsel-linux-gnu-
|
||||||
export HOST=mipsel-linux-gnu
|
export HOST=mipsel-linux-gnu
|
||||||
elif [[ "$target_arch" == "x86_64" ]]; then
|
elif [[ "$target_arch" == "x86_64" ]]; then
|
||||||
CROSS=""
|
CROSS=x86_64-linux-gnu-
|
||||||
export HOST=x86_64-linux-gnu
|
export HOST=x86_64-linux-gnu
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user