From 9d0051e6b4170851ebcc09e7ff44097818c8e1dc Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 17 Sep 2023 04:54:00 -0400 Subject: start using willruggiano/neovim.nix --- .github/workflows/build.yaml | 22 ----------------- .github/workflows/check.yaml | 25 ------------------- .github/workflows/ci.yaml | 59 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/check.yaml create mode 100644 .github/workflows/ci.yaml (limited to '.github') diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 85cd88b..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: build plugin - -on: - push: - branches: - - main - pull_request: - workflow_dispatch: - - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - - name: run build - run: - nix build -L diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml deleted file mode 100644 index e8f354f..0000000 --- a/.github/workflows/check.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: run checks - -on: - push: - branches: - - main - pull_request: - workflow_dispatch: - - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - - name: stylua - run: - nix build -L .#checks.x86_64-linux.stylua - - - name: flake check - run: nix flake check --accept-flake-config diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..5391c66 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,59 @@ +name: ci + +on: + push: + branches: ["main"] + pull_request: + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + include: + - os: ubuntu-latest + arch: + - "aarch64" + - "x86_64" + + runs-on: ${{ matrix.os }} + continue-on-error: true + + steps: + - uses: actions/checkout@v4 + + - name: setup qemu + if: matrix.arch == 'aarch64' + run: sudo apt install -y qemu-user-static + + - name: install nix + if: matrix.arch != 'aarch64' + uses: DeterminateSystems/nix-installer-action@v4 + + - name: install nix (with aarch64) + if: matrix.arch == 'aarch64' + uses: DeterminateSystems/nix-installer-action@v4 + with: + extra-conf: "extra-platforms = aarch64-linux arm-linux" + + - name: setup cache + uses: DeterminateSystems/magic-nix-cache-action@v2 + + - name: run build + run: nix build --accept-flake-config -Lv + + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: install nix + uses: DeterminateSystems/nix-installer-action@v4 + + - name: setup cache + uses: DeterminateSystems/magic-nix-cache-action@v2 + + - name: run check + run: nix flake check --accept-flake-config -Lv -- cgit v1.2.3