diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1eb7c7d..250502c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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() }}