2024-06-07 15:50:11 +00:00
|
|
|
name: MacOS TON build (portable, arm64)
|
|
|
|
|
|
|
|
on: [push,workflow_dispatch,workflow_call]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: macos-14
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
|
|
|
- uses: cachix/install-nix-action@v23
|
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build TON
|
|
|
|
run: |
|
2024-11-26 13:23:17 +00:00
|
|
|
git submodule sync --recursive
|
|
|
|
git submodule update
|
2024-06-07 15:50:11 +00:00
|
|
|
cp assembly/nix/build-macos-nix.sh .
|
|
|
|
chmod +x build-macos-nix.sh
|
|
|
|
./build-macos-nix.sh -t
|
|
|
|
|
|
|
|
- name: Simple binaries test
|
|
|
|
run: |
|
|
|
|
sudo mv /nix/store /nix/store2
|
|
|
|
artifacts/validator-engine -V
|
|
|
|
artifacts/lite-client -V
|
|
|
|
artifacts/fift -V
|
|
|
|
artifacts/func -V
|
2024-10-31 06:51:07 +00:00
|
|
|
artifacts/tolk -v
|
2024-06-07 15:50:11 +00:00
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: ton-arm64-macos-binaries
|
|
|
|
path: artifacts
|