panoptikon: do not report on IRC #828
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: CI | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
system: [makanek,manakish,kabsa,zaatar,ful,fatteh] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install QEMU (ARM) | |
run: sudo apt-get install -y qemu-user-static | |
if: ${{ matrix.system == 'ful' }} | |
- name: Install Nix (ARM) | |
uses: cachix/install-nix-action@v16 | |
if: ${{ matrix.system == 'ful' }} | |
with: | |
extra_nix_config: | | |
system = aarch64-linux | |
- name: Install Nix (x86_64) | |
uses: cachix/install-nix-action@v16 | |
if: ${{ matrix.system != 'ful' }} | |
- name: nixos-rebuild dry-build | |
run: | | |
# remove secrets: ref https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule/36593218 | |
git submodule deinit -f secrets | |
rm -rf .git/modules/secrets | |
git rm -f secrets | |
# recreate secrets | |
mkdir secrets | |
cat secrets.txt | while read -r path; do touch $path; done | |
git add secrets | |
nix run nixpkgs#nixos-rebuild -- dry-build --flake $GITHUB_WORKSPACE#${{matrix.system}} |