Merge pull request #32 from Thymis-io/fix/tags-identifier #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- master | |
jobs: | |
build-iso: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
extra_nix_config: | | |
system-features = kvm | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: pin nixpkgs | |
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-23.11 | |
- name: build generic-x86_64.install-iso | |
run: nix build .#all-download-images.generic-x86_64.install-iso --print-build-logs | |
build-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
extra_nix_config: | | |
system-features = kvm | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: pin nixpkgs | |
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-23.11 | |
- name: build frontend | |
run: nix build .#thymis-frontend-container --print-build-logs | |
build-controller: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
extra_nix_config: | | |
system-features = kvm | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: pin nixpkgs | |
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-23.11 | |
- name: build controller | |
run: nix build .#thymis-controller-container --print-build-logs | |
build: | |
runs-on: ubuntu-latest | |
needs: [build-iso, build-frontend, build-controller] | |
steps: | |
- run: echo "Build successful" |