diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0ffbcfe..add354f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -21,9 +21,9 @@ jobs:
- name: Download Soju
run: |
- curl --remote-name https://codeberg.org/emersion/soju/releases/download/v${{ github.event.inputs.version }}/soju-${{ github.event.inputs.version }}.tar.gz
- tar -xvzf soju-${{ github.event.inputs.version }}.tar.gz
- mv soju-${{ github.event.inputs.version }} soju
+ make soju
+ env:
+ SOJU_VERSION: ${{ github.event.inputs.version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6968d61
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+soju
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9fa3f5a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+soju:
+ curl --output soju.tar.gz https://codeberg.org/emersion/soju/releases/download/v$$SOJU_VERSION/soju-$$SOJU_VERSION.tar.gz
+ tar -xvzf soju.tar.gz
+ rm soju.tar.gz
+ mv soju-$$SOJU_VERSION soju