Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ii8 authored Nov 17, 2023
1 parent ff46509 commit 0cb06ce
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ jobs:
strategy:
fail-fast: false
matrix:
arch:
- { name: i686, alt: x86 }
- { name: x86_64, alt: amd64 }
- { name: aarch64, alt: arm64 }
- { name: powerpc, alt: powerpc }
#arch:
# - { name: i686, alt: x86 }
# - { name: x86_64, alt: amd64 }
# - { name: aarch64, alt: arm64 }
# - { name: powerpc, alt: powerpc }
- { name: powerpc64, alt: powerpc64 }
- { name: riscv32, alt: riscv }
- { name: riscv64, alt: riscv }
- { name: mips, alt: mips }
- { name: m68k, alt: m68k }
# - { name: riscv32, alt: riscv }
# - { name: riscv64, alt: riscv }
# - { name: mips, alt: mips }
# - { name: m68k, alt: m68k }
libc: [ gnu, musl ]
include:
- { arch: { name: mips64, alt: mips }, libc: gnuabi64 }
- { arch: { name: mips64, alt: mips }, libc: musl }
- { arch: { name: arm, alt: arm }, libc: gnueabihf }
- { arch: { name: arm, alt: arm }, libc: musleabihf }
- { arch: { name: armv7l, alt: arm }, libc: musleabihf }
exclude:
- { arch: { name: riscv32, alt: riscv }, libc: gnu }
#include:
# - { arch: { name: mips64, alt: mips }, libc: gnuabi64 }
# - { arch: { name: mips64, alt: mips }, libc: musl }
# - { arch: { name: arm, alt: arm }, libc: gnueabihf }
# - { arch: { name: arm, alt: arm }, libc: musleabihf }
# - { arch: { name: armv7l, alt: arm }, libc: musleabihf }
#exclude:
# - { arch: { name: riscv32, alt: riscv }, libc: gnu }

runs-on: ubuntu-latest

Expand Down Expand Up @@ -201,6 +201,13 @@ jobs:
dirs runtime
sudo cp -fpR build/lib/mlton/targets/${{ matrix.arch.name }}-linux-${{ matrix.libc }} /opt/boot/lib/mlton/targets/
- name: Build Hello World
run: |
mkdir hello && cd hello
echo 'print "hi\n";' > hello.sml
PATH="/opt/boot/bin:$PATH" mlton -verbose 2 -debug true -keep g -target ${{ matrix.arch.name }}-linux-${{ matrix.libc }} -cc-opt -I/usr/local/include -link-opt -L/usr/local/lib -link-opt -static
./hello
- name: Build MLton
run: |
cd mlton
Expand Down Expand Up @@ -252,7 +259,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: debug-${{ matrix.arch.name }}-${{ matrix.libc }}
path: mlton/mlton/mlton-compile*
path: hello/*

- name: Package
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 0cb06ce

Please sign in to comment.