-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.15 KB
/
build.yaml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
name: Build and release
on:
workflow_dispatch:
push:
branches:
- "master"
permissions:
contents: write
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update release tag
uses: EndBug/latest-tag@latest
static:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Install Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
run: |
mkdir release
nix build .#pkgsCross.musl64.hover-rs -L
cp -vL ./result/bin/hover release/hover-static-x86_64-linux
- uses: ncipollo/release-action@v1
name: Release
with:
tag: latest
makeLatest: true
omitBody: true
omitName: true
allowUpdates: true
replacesArtifacts: true
artifacts: "release/*"