~misterio/BSI-SCC0540-projeto

06469e0166afbbb938934ed20b75cbb5082e6e59 — Gabriel Fontes 5 months ago a81ea18
add ci
3 files changed, 45 insertions(+), 2 deletions(-)

A .builds/aarch64.yml
A .builds/x86-64.yml
M flake.nix
A .builds/aarch64.yml => .builds/aarch64.yml +21 -0
@@ 0,0 1,21 @@
image: nixos/unstable

packages:
  - nixos.nixUnstable
  - nixos.cachix

environment:
  NIX_CONFIG: "experimental-features = nix-command flakes"

secrets:
  - f2907d38-97b4-4e7d-9fb9-57b3fb0135af

tasks:
- auth_cachix: |
    cat ~/.cachix_token | cachix authtoken --stdin
    cachix use misterio
- build: |
    cd BSI-SCC0540-projeto
    nix build .#packages.aarch64-linux.projeto-bd
- cache: |
    nix path-info BSI-SCC0540-projeto/result/ -r | cachix push misterio

A .builds/x86-64.yml => .builds/x86-64.yml +21 -0
@@ 0,0 1,21 @@
image: nixos/unstable

packages:
  - nixos.nixUnstable
  - nixos.cachix

environment:
  NIX_CONFIG: "experimental-features = nix-command flakes"

secrets:
  - f2907d38-97b4-4e7d-9fb9-57b3fb0135af

tasks:
- auth_cachix: |
    cat ~/.cachix_token | cachix authtoken --stdin
    cachix use misterio
- build: |
    cd BSI-SCC0540-projeto
    nix build .#packages.x86_64-linux.projeto-bd
- cache: |
    nix path-info BSI-SCC0540-projeto/result/ -r | cachix push misterio

M flake.nix => flake.nix +3 -2
@@ 12,8 12,9 @@
    } //
    (utils.lib.eachDefaultSystem (system:
      let pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
      in {
        defaultPackage = pkgs.callPackage ./default.nix { };
      in rec {
        packages.projeto-bd = pkgs.callPackage ./default.nix { };
        defaultPackage = packages.projeto-bd;

        devShell = pkgs.mkShell {
          nativeBuildInputs = with pkgs; [