forked from TurBoTse/padavan
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.16 KB
/
Copy pathtoolchain.yml
File metadata and controls
41 lines (37 loc) · 1.16 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
name: Build Toolchain
on:
workflow_dispatch:
jobs:
build:
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
fail-fast: false
matrix:
target: [mipsel-linux-musl, mipsel-linux-uclibc]
steps:
- uses: actions/checkout@main
- name: Install Build Dependencies
run: |
sudo apt-get update
# 补齐编译、7z解压、libtool 全套依赖
sudo apt-get install -y bison flex gperf help2man libtool texinfo p7zip-full
sudo apt-get install -y libtool-bin || true
- name: Build and Package
run: |
make CT_TARGET=${{ matrix.target }}
cd "${{ matrix.target }}"
tar cJf "../${{ matrix.target }}.tar.xz" .
working-directory: toolchain
- uses: actions/upload-artifact@main
with:
name: ${{ matrix.target }}
path: toolchain/${{ matrix.target }}.tar.xz
- uses: ncipollo/release-action@main
with:
tag: toolchain
artifacts: toolchain/${{ matrix.target }}.tar.xz
allowUpdates: true
omitBodyDuringUpdate: true