aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-01-06 13:31:20 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-01-06 13:31:20 +0100
commit23807a36a0815ff979e58bf7faeac5fb8dfdd0f5 (patch)
tree51b980f8a9638ffba4db2daac347925b2399e105
parent53ce2c57f762b0d1967633a815a3dcb08b4bc268 (diff)
downloadrakudo-star-23807a36a0815ff979e58bf7faeac5fb8dfdd0f5.tar.gz
rakudo-star-23807a36a0815ff979e58bf7faeac5fb8dfdd0f5.tar.bz2
Introduce a GitHub Workflow to build a binary packagesgh-actions-test-1
This workflow will specifically build a package for amd64 machines using a GNU libc, but allows for extending into other territories later on. Using this, we *should* be able to automatically build for Windows and Mac users too, solving that problem forever if someone wants to spend some time setting it up. Once other architectures for Linux-based systems gets introduced on GitHub Actions, these could be build in a similar manner too.
-rw-r--r--.github/workflows/binary-packages.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/binary-packages.yml b/.github/workflows/binary-packages.yml
new file mode 100644
index 0000000..f062f4f
--- /dev/null
+++ b/.github/workflows/binary-packages.yml
@@ -0,0 +1,45 @@
+name: Binary Packages
+
+on:
+ release:
+ types:
+ - created
+
+jobs:
+ amd64-gnu:
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+# - name: Prepare
+# run: |
+# sudo apt update
+# sudo apt install -y cpanminus curl gcc make
+# cpanm -v ExtUtils::Command Pod::Usage
+#
+# - name: Fetch
+# run: |
+# ./bin/rstar fetch
+#
+# - name: Install
+# run: |
+# ./bin/rstar install -p "/tmp/ci-$GITHUB_RUN_ID"
+#
+# - name: Package
+# run: |
+# COMMIT="$(git rev-parse HEAD)"
+# SOURCE_DATE_EPOCH="$(git log -1 --pretty=format:%at)"
+# cd -- "/tmp/ci-$GITHUB_RUN_ID"
+# tar -c \
+# --mtime "@$SOURCE_DATE_EPOCH" \
+# --mode=go=rX,u+rw,a-s \
+# --format=gnu \
+# --numeric-owner --owner=0 --group=0 \
+# . \
+# | gzip -9cn \
+# > "/tmp/rakudo-star-amd64-gnu-$GITHUB_SHA.tar.gz"
+
+ - name: Upload
+ run: |
+ echo "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/$GITHUB_REF"