name: "CI" on: pull_request: push: branches: ["main"] tags: ["v*"] jobs: build: name: Build packages runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - system: x86_64-linux steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main # - uses: DeterminateSystems/magic-nix-cache-action@main - run: nix --print-build-logs build .#packages.$SYSTEM.default env: SYSTEM: ${{ matrix.system }} - name: Prepare release artifact if: startsWith(github.ref, 'refs/tags/') run: cp result/bin/mkv mkv-${{ matrix.system }} - name: Create release if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: mkv-${{ matrix.system }}