-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (42 loc) · 1.4 KB
/
on-demand-build.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release artifacts for arm7
on:
workflow_dispatch:
pull_request:
branches: ["master"]
jobs:
build_arm:
env:
TARGET: armv7-unknown-linux-gnueabihf
RELEASE_TAG: v1.1.1
# CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: /usr/bin/arm-linux-gnueabihf-gcc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: armv7
distro: ubuntu18.04
# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
# Set an output parameter `uname` for use in subsequent steps
run: |
uname -a
echo ::set-output name=uname::$(uname -a)
- name: Install gcc tools
run:
sudo apt install gcc-arm-linux-gnueabihf
- name: Create artifacts folder
run: mkdir artifacts
- name: Create artifacts for darwin
run: sh ci/script.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: funzzy-${{ env.RELEASE_TAG }}-${{ env.TARGET }}.tar.gz
asset_name: funzzy-${{ env.RELEASE_TAG }}-${{ env.TARGET }}.tar.gz
tag: v1.1.1
overwrite: true