-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 916 Bytes
/
templates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: templates
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
strategy:
matrix:
platform:
- host: macos-latest
- host: ubuntu-latest
runs-on: ${{ matrix.platform.host }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-nix
with:
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: "Initialize and test"
run: |
cargo new ci
cd ci
cargo run
nix flake init -L --show-trace -t '..#templates.rust'
git add .
nix flake check -L --show-trace --override-input 'nixify' '..'
nix run -L --show-trace --override-input 'nixify' '..'
nix develop -L --show-trace --override-input 'nixify' '..' --ignore-environment -c cargo test