-
Notifications
You must be signed in to change notification settings - Fork 50
74 lines (64 loc) · 2.09 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build ACT
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
buils_debian_x86_64:
runs-on: ubuntu-latest
strategy:
matrix:
container: [ 'debian:10', 'debian:11' ]
container:
image: ${{ matrix.container }}
options: "--entrypoint /bin/bash"
steps:
- name: Install Dependencies (Debian)
run: |
apt-get -y update
apt-get -y install make gcc libc6-dev git build-essential
- name: Clone Source
run: git clone https://github.com/aerospike/act.git
- name: build act (debian)
working-directory: ./act
run: |
echo "REV=$(make -f pkg/Makefile.deb print-REV)" >> $GITHUB_ENV
echo "OS=$(make -f pkg/Makefile.deb print-OS)" >> $GITHUB_ENV
echo "ARCH=$(make -f pkg/Makefile.deb print-ARCH)" >> $GITHUB_ENV
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
make all deb
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: act_${{ env.REV }}-1${{ env.OS }}_${{ env.ARCH }}.deb
path: /__w/act/act/act/target/packages/act_*
if-no-files-found: error
build_ubuntu_x86_64:
strategy:
matrix:
os: [ 'ubuntu-20.04', 'ubuntu-18.04' ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies
run: sudo apt-get install make gcc libc6-dev
- name: Get Sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set env
run: |
echo "REV=$(make -f pkg/Makefile.deb print-REV)" >> $GITHUB_ENV
echo "OS=$(make -f pkg/Makefile.deb print-OS)" >> $GITHUB_ENV
echo "ARCH=$(make -f pkg/Makefile.deb print-ARCH)" >> $GITHUB_ENV
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
- name: build
run: make all deb
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: act_${{ env.REV }}-1${{ env.OS }}_${{ env.ARCH }}.deb
path: target/packages
if-no-files-found: error