diff --git a/.github/workflows/build-system.yml b/.github/workflows/build-system.yml new file mode 100644 index 0000000..efe5274 --- /dev/null +++ b/.github/workflows/build-system.yml @@ -0,0 +1,38 @@ +name: Build for linux + +on: + pull_request: + +jobs: + build-x86_64: + runs-on: ubuntu-24.04 + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Check Nix flake Nixpkgs inputs + uses: DeterminateSystems/flake-checker-action@main + - uses: DeterminateSystems/nix-installer-action@main + with: + github-token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} + - name: Build x86_64-linux + run: | + # nix flake check --all-systems + nix build --accept-flake-config + build-aarch64: + runs-on: ubuntu-24.04-arm + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Check Nix flake Nixpkgs inputs + uses: DeterminateSystems/flake-checker-action@main + - uses: DeterminateSystems/nix-installer-action@main + with: + github-token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} + - name: Build aarch64-linux + run: | + # nix flake check --all-systems + nix build --accept-flake-config diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 21f0d5f..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,20 +0,0 @@ -on: - pull_request: - workflow_dispatch: - push: - branches: - - main - - master - tags: - - v?[0-9]+.[0-9]+.[0-9]+* - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - DeterminateCI: - uses: DeterminateSystems/ci/.github/workflows/workflow.yml@main - permissions: - id-token: write - contents: read diff --git a/flake.lock b/flake.lock index e2fd3e4..290952c 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixCats": { "locked": { - "lastModified": 1745265074, - "narHash": "sha256-gcaSt7WPnDhopBHFLbjgBSnyqd6AuFMbvUgA0RTgAPE=", + "lastModified": 1745808494, + "narHash": "sha256-5Pr92pP0IaWaFCh6KLAzg+4PJ91HQGjnvvYAk8rxCL4=", "owner": "BirdeeHub", "repo": "nixCats-nvim", - "rev": "a77b5b122b497232ae5317d8c22e4c9f7425adb8", + "rev": "8b584f12aa289b00e653fe8a4e386109934d3a24", "type": "github" }, "original": { @@ -17,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1744868846, - "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", + "lastModified": 1745377448, + "narHash": "sha256-jhZDfXVKdD7TSEGgzFJQvEEZ2K65UMiqW5YJ2aIqxMA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c", + "rev": "507b63021ada5fee621b6ca371c4fca9ca46f52c", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 15990ed..d50840c 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,13 @@ let inherit (nixCats) utils; luaPath = "${./.}"; - forEachSystem = utils.eachSystem nixpkgs.lib.platforms.all; + forEachSystem = utils.eachSystem [ + "aarch64-linux" + "x86_64-linux" + "i686-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; extra_pkg_config = { # allowUnfree = true; };