Skip to content

Commit 7531dc0

Browse files
committed
Add osx build action
1 parent 2b2e4fc commit 7531dc0

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build release binary on macos-latest to be used for other actions
2+
3+
on: [ workflow_dispatch ]
4+
5+
jobs:
6+
build-macos-latest:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: "Install tools"
11+
run: brew install automake mbedtls libtool
12+
- name: "Build"
13+
run: |
14+
curl -f -o get-gauche.sh https://raw.githubusercontent.com/shirok/get-gauche/master/get-gauche.sh
15+
chmod +x get-gauche.sh
16+
./get-gauche.sh --prefix /usr/local --destdir package --version latest --force
17+
(cd package; tar czvf ../gauche-binary-macos-latest.tar.gz .)
18+
- name: "Upload"
19+
run: |
20+
gh release upload v1 gauche-binary-macos-latest.tar.gz --clobber
21+
env:
22+
GITHUB_TOKEN: ${{ github.TOKEN }}

.github/workflows/build-tarball.yml renamed to .github/workflows/build-ubuntu-tarball.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Build release binary to be used for other actions
1+
name: Build release binary on ubuntu-latest to be used for other actions
22

33
on: [ workflow_dispatch ]
44

55
jobs:
6-
trigger-tester:
6+
build-ubnutu-latest:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)