Skip to content

Commit 07a3a90

Browse files
committed
build: switch from asdf to mise
1 parent 1ccb38d commit 07a3a90

7 files changed

Lines changed: 150 additions & 166 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ jobs:
2828
with:
2929
persist-credentials: false
3030

31-
- name: Setup Crystal
32-
uses: crystal-lang/install-crystal@v1
33-
with:
34-
crystal: 1.18.2
31+
- name: Setup mise
32+
uses: jdx/mise-action@v3
3533

3634
- name: Install dependencies
37-
run: make deps
35+
run: mise dev:deps
3836

39-
- name: Run tests
40-
run: make ameba
37+
- name: Run static code analysis
38+
run: mise dev:ameba
4139

4240
test_linux:
4341
runs-on: ubuntu-latest
@@ -47,16 +45,14 @@ jobs:
4745
with:
4846
persist-credentials: false
4947

50-
- name: Setup Crystal
51-
uses: crystal-lang/install-crystal@v1
52-
with:
53-
crystal: 1.18.2
48+
- name: Setup mise
49+
uses: jdx/mise-action@v3
5450

5551
- name: Install dependencies
56-
run: make deps
52+
run: mise dev:deps
5753

5854
- name: Run tests
59-
run: make spec
55+
run: mise dev:spec
6056

6157
test_macos_arm64:
6258
runs-on: macos-26
@@ -66,16 +62,18 @@ jobs:
6662
with:
6763
persist-credentials: false
6864

69-
- name: Setup Crystal
70-
uses: crystal-lang/install-crystal@v1
71-
with:
72-
crystal: 1.18.2
65+
- name: Setup mise
66+
uses: jdx/mise-action@v3
67+
68+
# TODO: remove me when https://github.com/crystal-lang/crystal/issues/16746 is fixed
69+
- name: Fix Crystal shards
70+
run: mise dev:fix-shards-command
7371

7472
- name: Install dependencies
75-
run: make deps
73+
run: mise dev:deps
7674

7775
- name: Run tests
78-
run: make spec
76+
run: mise dev:spec
7977

8078
test_macos_amd64:
8179
runs-on: macos-26-intel
@@ -85,13 +83,15 @@ jobs:
8583
with:
8684
persist-credentials: false
8785

88-
- name: Setup Crystal
89-
uses: crystal-lang/install-crystal@v1
90-
with:
91-
crystal: 1.18.2
86+
- name: Setup mise
87+
uses: jdx/mise-action@v3
88+
89+
# TODO: remove me when https://github.com/crystal-lang/crystal/issues/16746 is fixed
90+
- name: Fix Crystal shards
91+
run: mise dev:fix-shards-command
9292

9393
- name: Install dependencies
94-
run: make deps
94+
run: mise dev:deps
9595

9696
- name: Run tests
97-
run: make spec
97+
run: mise dev:spec

.github/workflows/release_binaries.yml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,20 @@ jobs:
1212
steps:
1313
- name: Git checkout
1414
uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
1517

1618
- name: Set up QEMU
1719
uses: docker/setup-qemu-action@v3
1820

1921
- name: Set up Docker Buildx
2022
uses: docker/setup-buildx-action@v3
2123

24+
- name: Setup mise
25+
uses: jdx/mise-action@v3
26+
2227
- name: Build static binaries
23-
run: make release-static
28+
run: mise release:static
2429

2530
- name: Create release and publish assets
2631
uses: ncipollo/release-action@v1
@@ -34,17 +39,26 @@ jobs:
3439
steps:
3540
- name: Git checkout
3641
uses: actions/checkout@v6
37-
38-
- name: Setup Crystal
39-
uses: crystal-lang/install-crystal@v1
4042
with:
41-
crystal: 1.18.2
43+
persist-credentials: false
44+
45+
- name: Install bdw-gc
46+
run: brew install bdw-gc
47+
48+
- name: Setup mise
49+
uses: jdx/mise-action@v3
50+
51+
# TODO: remove me when https://github.com/crystal-lang/crystal/issues/16746 is fixed
52+
- name: Fix Crystal shards
53+
run: mise dev:fix-shards-command
4254

4355
- name: Install dependencies
44-
run: make deps-release
56+
run: mise release:deps
4557

4658
- name: Build binary
47-
run: make release OUTPUT_FILE=squarectl-darwin-arm64
59+
run: mise release:build
60+
env:
61+
OUTPUT_FILE: bin/squarectl-darwin-arm64
4862

4963
- name: Create release and publish assets
5064
uses: ncipollo/release-action@v1
@@ -58,17 +72,26 @@ jobs:
5872
steps:
5973
- name: Git checkout
6074
uses: actions/checkout@v6
61-
62-
- name: Setup Crystal
63-
uses: crystal-lang/install-crystal@v1
6475
with:
65-
crystal: 1.18.2
76+
persist-credentials: false
77+
78+
- name: Install bdw-gc
79+
run: brew install bdw-gc
80+
81+
- name: Setup mise
82+
uses: jdx/mise-action@v3
83+
84+
# TODO: remove me when https://github.com/crystal-lang/crystal/issues/16746 is fixed
85+
- name: Fix Crystal shards
86+
run: mise dev:fix-shards-command
6687

6788
- name: Install dependencies
68-
run: make deps-release
89+
run: mise release:deps
6990

7091
- name: Build binary
71-
run: make release OUTPUT_FILE=squarectl-darwin-amd64
92+
run: mise release:build
93+
env:
94+
OUTPUT_FILE: bin/squarectl-darwin-amd64
7295

7396
- name: Create release and publish assets
7497
uses: ncipollo/release-action@v1

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

Brewfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
# because we heavily rely on it
44
brew 'bash'
55

6-
# to run some tasks
7-
brew 'make'
8-
96
# to install other tools
10-
brew 'asdf'
7+
brew 'mise'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021-2026 Nicolas Rodriguez
3+
Copyright (c) 2021-2026 Nicolas Rodriguez <nico@nicoladmin.fr>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

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

0 commit comments

Comments
 (0)