-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (42 loc) · 1.13 KB
/
macos-amd64-release.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
name: "Build for macos x86_64"
on:
release:
types: [created]
jobs:
release:
name: release macos x86_64
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: hecrj/setup-rust-action@v1.4.0
with:
rust-version: stable
- name: Compile
shell: bash
run: |
cargo clean
cargo build --release
- run: cp target/release/pullauta .
- name: 'Compress binaries'
if: true
uses: a7ul/tar-action@v1.1.2
with:
command: c
files: |
pullauta
LICENSE
README.md
osm.txt
fastighetskartan.txt
outPath: '${{ runner.temp }}/karttapullautin-x86_64-macos.tar.gz'
- name: 'Release binaries'
if: true
uses: pragmatrix/release-action@v1.11.1-rs
with:
allowUpdates: true
replacesArtifacts: true
artifacts: '${{ runner.temp }}/karttapullautin-x86_64-macos.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}
artifactErrorsFailBuild: true
prerelease: true