hello/main.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

2023-09-19 20:37:58 +00:00
name: "Hello"
on:
push:
branches: [ main, master ]
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
issues: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
GIT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
jobs:
build_job:
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} (${{ matrix.version }}) for ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: x86_64
distro: Debian
version: bullseye
# - arch: aarch64
# distro: Debian
# version: bullseye
# - arch: ppc64le
# distro: Debian
# version: bullseye
# - arch: risc64
# distro: Ubuntu
# version: ubuntu_latest
id: build
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
2023-09-20 17:10:43 +00:00
nix_path: nixpkgs=channel:nixos-unstable
2023-09-19 20:37:58 +00:00
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Print nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- run: nix build
- run: nix flake check