summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-17 04:54:00 -0400
committerseth <[email protected]>2023-10-07 12:55:41 -0400
commit9d0051e6b4170851ebcc09e7ff44097818c8e1dc (patch)
tree067e1d6b745fc61aeb9b885439482f946bbdf2fe /.github
parente910460767dd835c7fb8aa7a59082e645c207cbd (diff)
start using willruggiano/neovim.nix
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml22
-rw-r--r--.github/workflows/check.yaml25
-rw-r--r--.github/workflows/ci.yaml59
3 files changed, 59 insertions, 47 deletions
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