| 1 |
name: Linux make |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ master ] |
| 6 |
pull_request: |
| 7 |
branches: [ master ] |
| 8 |
|
| 9 |
permissions: |
| 10 |
contents: read |
| 11 |
|
| 12 |
jobs: |
| 13 |
build: |
| 14 |
runs-on: ubuntu-20.04 |
| 15 |
steps: |
| 16 |
- name: Harden Runner |
| 17 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 18 |
with: |
| 19 |
egress-policy: audit |
| 20 |
|
| 21 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 22 |
- name: cmake |
| 23 |
run: | |
| 24 |
rm -rf ${{ github.workspace }}/build |
| 25 |
cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} |
| 26 |
- name: make |
| 27 |
run: | |
| 28 |
cd ${{ github.workspace }}/build |
| 29 |
make install -j |
| 30 |
build-systemd-unit: |
| 31 |
runs-on: ubuntu-20.04 |
| 32 |
steps: |
| 33 |
- name: Harden Runner |
| 34 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 35 |
with: |
| 36 |
egress-policy: audit |
| 37 |
|
| 38 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 39 |
- name: cmake |
| 40 |
run: | |
| 41 |
rm -rf ${{ github.workspace }}/build |
| 42 |
cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} -DLINUX_SYSTEMD=TRUE -DLINUX_SYSTEMD_UNITDIR=${{ github.workspace }}/build/systemd |
| 43 |
- name: make |
| 44 |
run: | |
| 45 |
cd ${{ github.workspace }}/build |
| 46 |
make install -j |
| 47 |
build-system-simdjson: |
| 48 |
runs-on: ubuntu-20.04 |
| 49 |
container: ubuntu:22.04 |
| 50 |
steps: |
| 51 |
- name: Harden Runner |
| 52 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 53 |
with: |
| 54 |
egress-policy: audit |
| 55 |
|
| 56 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 57 |
- name: install dependencies |
| 58 |
run: | |
| 59 |
apt update |
| 60 |
apt -y --no-install-recommends install build-essential cmake libsimdjson-dev libssl-dev |
| 61 |
- name: cmake |
| 62 |
run: | |
| 63 |
rm -rf ${{ github.workspace }}/build |
| 64 |
cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} |
| 65 |
- name: make |
| 66 |
run: | |
| 67 |
cd ${{ github.workspace }}/build |
| 68 |
make install -j |
| 69 |
build-source-simdjson: |
| 70 |
runs-on: ubuntu-20.04 |
| 71 |
steps: |
| 72 |
- name: Harden Runner |
| 73 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 74 |
with: |
| 75 |
egress-policy: audit |
| 76 |
|
| 77 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 78 |
with: |
| 79 |
submodules: recursive |
| 80 |
- name: cmake |
| 81 |
run: | |
| 82 |
rm -rf ${{ github.workspace }}/build |
| 83 |
cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} |
| 84 |
- name: make |
| 85 |
run: | |
| 86 |
cd ${{ github.workspace }}/build |
| 87 |
make install -j |