Skip to content

Commit

Permalink
Create make.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zedifen authored Aug 16, 2023
1 parent d1f1818 commit 0abb69c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Makefile CI

on:
push:
branches: [ "musl.cc" ]
pull_request:
branches: [ "musl.cc" ]

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
target:
- aarch64-linux-musl
- x86_64-linux-musl

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- name: Configure caching
uses: actions/cache@v3
with:
key: ${{ matrix.os }}-${{ matrix.target }}
path: |
Sources/
output/
binutils-*/
gcc-*/
musl-*/
gmp-*/
mpc-*/
mpfr-*/
build-*/
linux-*/
isl-*/
build/
- name: Build MUSL
run: TARGET=${{ matrix.target }} make -j

- name: Package outputs
run: tar -cf musl-${{ matrix.os }}-${{ matrix.target }}.tgz -C build/local ${{matrix.target}}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: musl-${{ matrix.os }}-${{ matrix.target }}.tgz
path: musl-${{ matrix.os }}-${{ matrix.target }}.tgz

0 comments on commit 0abb69c

Please sign in to comment.