-
Notifications
You must be signed in to change notification settings - Fork 22
66 lines (65 loc) · 1.94 KB
/
build-test-release-tagged.yaml
File metadata and controls
66 lines (65 loc) · 1.94 KB
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
name: build-test-release-tagged
on:
push:
tags:
- v*
jobs:
build-test-release-x86_64:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build all targets x86-64.
run: |
make build-all RELEASE_BUILD=true
- name: Run unit tests across all targets x86-64.
run: |
make test-all
- name: Prepare scenarios to be released.
run: |
sudo apt install zip
zip -r scenarios.zip scenarios
mv bin/ie bin/ie-x86_64
- name: releases the artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/ie-x86_64
scenarios.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-test-release-aarch64:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Build all target aarch64.
id: build
with:
arch: aarch64
distro: ubuntu_latest
run: |
apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -q -y build-essential git wget
wget https://go.dev/dl/go1.24.1.linux-arm64.tar.gz
tar -C /usr/local -xzf go1.24.1.linux-arm64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go env
make build-all RELEASE_BUILD=true
- name: Run unit tests across all targets aarch64.
run: |
make test-all
- name: Rename aarch64 binary for release.
run: |
sudo mv bin/ie bin/ie-aarch64
- name: releases the artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/ie-aarch64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}