Skip to content

Commit 7adfbed

Browse files
committed
Update build workflown
1 parent cee34e7 commit 7adfbed

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/build.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
target: [
14+
alpha-unknown-linux-gnu,
15+
x86_64-unknown-linux-gnu,
16+
i386-unknown-linux-gnu,
17+
arm-unknown-linux-gnueabi,
18+
arm-unknown-linux-gnueabihf,
19+
hppa-unknown-linux-gnu,
20+
aarch64-unknown-linux-gnu,
21+
mips-unknown-linux-gnu,
22+
mipsel-unknown-linux-gnu,
23+
powerpc-unknown-linux-gnu,
24+
s390-unknown-linux-gnu,
25+
s390x-unknown-linux-gnu,
26+
sparc-unknown-linux-gnu,
27+
powerpc64le-unknown-linux-gnu
28+
]
29+
steps:
30+
- uses: actions/checkout@main
31+
with:
32+
submodules: true
33+
- name: Install required dependencies
34+
run: |
35+
sudo apt-get install --assume-yes libfl-dev
36+
- name: Build Atar with OBGGCC
37+
run: |
38+
source './tools/setup_toolchain.sh'
39+
source './submodules/obggcc/tools/setup_toolchain.sh'
40+
41+
bash './build.sh' '${{ matrix.target }}'
42+
- name: Generate tarball
43+
run: |
44+
declare tarball_filename='${{ matrix.target }}.tar.xz'
45+
tar --directory='/tmp' --create --file=- 'atar' | xz --threads=0 --compress -9 > "${tarball_filename}"
46+
sha256sum "${tarball_filename}" > "${tarball_filename}.sha256"
47+
- name: Upload artifact
48+
uses: actions/upload-artifact@main
49+
with:
50+
path: |
51+
${{ matrix.target }}.tar.xz
52+
${{ matrix.target }}.tar.xz.sha256

0 commit comments

Comments
 (0)