diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..71fe64bd9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Check and Build Ligo + +on: + push: + branches: + - stable + tags: + - "v*.*.*" + pull_request: + branches: + - stable + +jobs: + build_nix: + name: Build Ligo ${{ matrix.name }} + strategy: + matrix: + - + name: Ubuntu x86_64 + system: ubuntu-24.04 + - + name: macOS arm64 + system: macos-14 + runs-on: ${{ matrix.system }} + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + - run: nix build -L .#ligo diff --git a/nix/ligo.nix b/nix/ligo.nix index 3e8e0a6a7..1112fa16c 100644 --- a/nix/ligo.nix +++ b/nix/ligo.nix @@ -20,6 +20,9 @@ in TREE_SITTER = "${tree-sitter}"; TREE_SITTER_TYPESCRIPT = "${tree-sitter-typescript}"; + # TODO: needed due to racing condition on inline_tests + enableParallelBuilding = false; + postPatch = '' mkdir -p vendors/tezos-ligo cp -r ${tezos-ligo}/. vendors/tezos-ligo/