From 5423fa7b48926af9c615c7e8c0e1864e819585b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Thu, 29 Aug 2024 15:56:46 +0200 Subject: [PATCH] ci: add github action builds for x86_64/aarch64-darwin --- .github/workflows/aarch64-darwin.yml | 29 ++++++++++++++++++++++++++++ .github/workflows/pre-check.yml | 11 +++++++++++ .github/workflows/x86_64-darwin.yml | 29 ++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .github/workflows/aarch64-darwin.yml create mode 100644 .github/workflows/pre-check.yml create mode 100644 .github/workflows/x86_64-darwin.yml diff --git a/.github/workflows/aarch64-darwin.yml b/.github/workflows/aarch64-darwin.yml new file mode 100644 index 0000000..5a0f056 --- /dev/null +++ b/.github/workflows/aarch64-darwin.yml @@ -0,0 +1,29 @@ +name: check +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + check: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-14] + steps: + - uses: actions/checkout@main + - uses: DeterminateSystems/nix-installer-action@main + - uses: cachix/cachix-action@master + with: + name: cspr + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: System Info + run: | + uname -a + nix --version + + - name: casper-rust-sdk (aarch64-darwin) + run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.casper-rust-sdk diff --git a/.github/workflows/pre-check.yml b/.github/workflows/pre-check.yml new file mode 100644 index 0000000..1b77ecb --- /dev/null +++ b/.github/workflows/pre-check.yml @@ -0,0 +1,11 @@ +name: pre-check +on: + pull_request: + branches: [main] + +jobs: + check-signed-commits: + runs-on: ubuntu-latest + steps: + - name: check signed commits + uses: 1Password/check-signed-commits-action@v1 diff --git a/.github/workflows/x86_64-darwin.yml b/.github/workflows/x86_64-darwin.yml new file mode 100644 index 0000000..c847fbc --- /dev/null +++ b/.github/workflows/x86_64-darwin.yml @@ -0,0 +1,29 @@ +name: check +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + check: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-latest] + steps: + - uses: actions/checkout@main + - uses: DeterminateSystems/nix-installer-action@main + - uses: cachix/cachix-action@master + with: + name: cspr + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: System Info + run: | + uname -a + nix --version + + - name: casper-rust-sdk (x86_64-darwin) + run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.casper-rust-sdk