Skip to content

Commit 1ebee25

Browse files
committed
Use Nix in CI
1 parent 7b43561 commit 1ebee25

File tree

4 files changed

+9
-127
lines changed

4 files changed

+9
-127
lines changed

.github/texlive.packages

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/texlive.profile

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
1-
name: Build
21
on:
32
push:
4-
branches:
5-
- development
3+
branches-ignore:
4+
- main
65
pull_request:
7-
schedule:
8-
- cron: "0 0 * * *"
96
jobs:
107
build:
118
runs-on: ubuntu-latest
129
steps:
13-
- name: Checkout repo
14-
uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
11+
- uses: DeterminateSystems/nix-installer-action@main
12+
- run: nix develop --command make string-diagrams.tar.gz
1513

16-
- name: Install Perl dependencies
17-
uses: perl-actions/install-with-cpanm@stable
18-
with:
19-
install: |
20-
File::HomeDir
21-
File::Copy::Recursive
22-
23-
- name: Setup TeX Live
24-
uses: paolobrasolin/setup-texlive-action@main
25-
with:
26-
packages-path: ${{ github.workspace }}/.github/texlive.packages
27-
profile-path: ${{ github.workspace }}/.github/texlive.profile
28-
29-
- name: Build
30-
run: |
31-
make string-diagrams.tar.gz

.github/workflows/release.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
name: Release
21
on:
32
push:
43
branches:
@@ -12,8 +11,7 @@ jobs:
1211
steps:
1312
#==[ Shared ]=============================================================
1413

15-
- name: Checkout repo
16-
uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1715

1816
- name: Run labeller
1917
id: labeller
@@ -23,24 +21,12 @@ jobs:
2321
echo Detected descriptor: ${GIT_DESCRIPTOR}
2422
echo "VERSION=${GIT_DESCRIPTOR#v}" >> $GITHUB_OUTPUT
2523
26-
- name: Install ctanify Perl dependencies
27-
uses: perl-actions/install-with-cpanm@stable
28-
with:
29-
install: |
30-
File::HomeDir
31-
File::Copy::Recursive
32-
33-
- name: Setup TeX Live
34-
uses: paolobrasolin/setup-texlive-action@main
35-
with:
36-
cache-key: texlive-release
37-
packages-path: ${{ github.workspace }}/.github/texlive.packages
38-
profile-path: ${{ github.workspace }}/.github/texlive.profile
24+
- uses: DeterminateSystems/nix-installer-action@main
3925

4026
- name: Build
4127
run: |
42-
make VERSION=${{ steps.labeller.outputs.version }} interpolate
43-
make string-diagrams.tar.gz
28+
nix develop --command make VERSION=${{ steps.labeller.outputs.version }} interpolate
29+
nix develop --command make string-diagrams.tar.gz
4430
cp string-diagrams.tar.gz string-diagrams-${{ steps.labeller.outputs.version }}.tar.gz
4531
4632
#==[ Pre-release ]========================================================

0 commit comments

Comments
 (0)