forked from nicklockwood/ShapeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 801 Bytes
/
linux_build.yml
File metadata and controls
29 lines (27 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build for Linux
on:
workflow_dispatch:
inputs:
ref:
description: 'Ref to build (branch, tag or SHA)'
required: false
default: 'main'
jobs:
build:
name: Build ShapeScript for Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
- name: Build it
run: |
swift build --configuration release --static-swift-stdlib
SWIFTFORMAT_BIN_PATH=`swift build --configuration release --show-bin-path`
mv $SWIFTFORMAT_BIN_PATH/shapescript "${HOME}/shapescript"
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: shapescript_linux
path: ~/shapescript
retention-days: 5