Skip to content

Commit a2c8710

Browse files
committed
Add scripts, update README.md, add workflows
1 parent b07816e commit a2c8710

File tree

7 files changed

+514
-441
lines changed

7 files changed

+514
-441
lines changed

.github/workflows/ci.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: CI
2+
env:
3+
BINUTILS_VERSION: 2.36.1
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
build_linux:
15+
runs-on: ubuntu-18.04
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install build dependencies
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get -f -u install mingw-w64 autoconf gettext texinfo dwz xz-utils zlib1g-dev
23+
24+
- name: build Linux and Windows
25+
run: ./build.sh ${BINUTILS_VERSION}
26+
27+
- name: package config and build logs
28+
if: ${{ always() }}
29+
run: find build -name 'config.*' | zip -9 linux-build-logs.zip -@
30+
31+
- name: upload config and build logs
32+
if: ${{ always() }}
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: build-logs
36+
path: linux-build-logs.zip
37+
38+
- name: package artifacts
39+
run: tar cjf linux-artifacts.tar.bz2 artifacts
40+
41+
- name: upload Linux and Windows artifacts
42+
uses: actions/upload-artifact@v2
43+
with:
44+
name: linux-windows
45+
path: linux-artifacts.tar.bz2
46+
47+
build_macos:
48+
runs-on: macos-10.15
49+
steps:
50+
- uses: actions/checkout@v2
51+
52+
- name: Install build dependencies
53+
run: |
54+
brew update
55+
brew install make autoconf gettext xz
56+
57+
- name: build macOS
58+
run: bash -x ./build.sh ${BINUTILS_VERSION}
59+
60+
- name: package config and build logs
61+
if: ${{ always() }}
62+
run: find build -name 'config.*' | zip -9 macos-build-logs.zip -@
63+
64+
- name: upload config and build logs
65+
if: ${{ always() }}
66+
uses: actions/upload-artifact@v2
67+
with:
68+
name: build-logs
69+
path: macos-build-logs.zip
70+
71+
- name: package artifacts
72+
run: tar cjf macos-artifacts.tar.bz2 artifacts
73+
74+
- name: upload macOS artifacts
75+
uses: actions/upload-artifact@v2
76+
with:
77+
name: macOS
78+
path: macos-artifacts.tar.bz2
79+
80+
package_binaries:
81+
runs-on: ubuntu-18.04
82+
needs: [build_linux, build_macos]
83+
steps:
84+
- name: Download Linux and Windows artifacts
85+
uses: actions/download-artifact@v2
86+
with:
87+
name: linux-windows
88+
89+
- name: Download macOS artifacts
90+
uses: actions/download-artifact@v2
91+
with:
92+
name: macOS
93+
94+
- name: Unpack Linux and Windows artifacts
95+
run: |
96+
tar xf linux-artifacts.tar.bz2
97+
98+
- name: Unpack macOS artifacts
99+
run: |
100+
tar xf macos-artifacts.tar.bz2
101+
102+
- name: Pack Linux, macOS and Windows artifacts
103+
run: tar cjf xamarin-android-binutils.tar.bz2 artifacts
104+
105+
- name: upload Xamarin.Android Binutils
106+
uses: actions/upload-artifact@v2
107+
with:
108+
name: Xamarin.Android
109+
path: xamarin-android-binutils.tar.bz2

0 commit comments

Comments
 (0)