-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 928 Bytes
/
Copy pathrelease.yaml
File metadata and controls
39 lines (35 loc) · 928 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
30
31
32
33
34
35
36
37
38
39
name: Binaries
on:
workflow_call:
inputs:
repo:
required: true
type: string
tag:
required: true
type: string
secrets:
token:
required: true
jobs:
build:
name: build
runs-on:
group: apple-silicon
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repo }}
- run: echo "PATH=/opt/homebrew/bin:/opt/homebrew/sbin:$PATH" >> $GITHUB_ENV
- name: Cirrus CI
run: cirrus run --artifacts-dir artifacts
- name: Create Checksum
run: |
cd artifacts/Build/binary/burrito_out
chmod +x ./*
shasum -a 256 ./* > next_ls_checksums.txt
cd ..
- name: Upload to release
env:
GITHUB_TOKEN: ${{ secrets.token }}
run: gh release upload ${{ inputs.tag }} artifacts/Build/binary/burrito_out/* --repo "${{ inputs.repo }}"