13
13
os :
14
14
- ubuntu-latest
15
15
- windows-latest
16
+ - macos-latest
16
17
runs-on : ${{ matrix.os }}
17
18
steps :
18
19
- name : Set up Rust
29
30
os :
30
31
- ubuntu-latest
31
32
- windows-latest
33
+ - macos-latest
32
34
runs-on : ${{ matrix.os }}
33
35
steps :
34
36
- name : Set up Rust
44
46
os :
45
47
- ubuntu-latest
46
48
- windows-latest
49
+ - macos-latest
47
50
runs-on : ${{ matrix.os }}
48
51
steps :
49
52
- name : Set up Rust
58
61
os :
59
62
- ubuntu-latest
60
63
- windows-latest
64
+ - macos-latest
61
65
runs-on : ${{ matrix.os }}
62
66
63
67
steps :
@@ -87,21 +91,24 @@ jobs:
87
91
- build : windows-msvc
88
92
os : windows-latest
89
93
target : x86_64-pc-windows-msvc
94
+ - build : macos
95
+ os : macos-latest
96
+ target : aarch64-apple-darwin
90
97
91
98
steps :
92
99
- name : Set up Rust
93
100
uses : hecrj/setup-rust-action@v1
94
101
- uses : actions/checkout@master
95
102
- name : Set version
96
103
id : set_version
97
- if : matrix.os == 'ubuntu-latest'
104
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
98
105
run : echo "::set-output name=EPICK_VERSION::${GITHUB_REF#refs/tags/}"
99
106
- name : Set version
100
107
id : set_version_win
101
108
if : matrix.os == 'windows-latest'
102
109
run : echo "::set-output name=EPICK_VERSION::$(git describe --tags --abbrev=0)"
103
110
- name : Set archive name
104
- if : matrix.os == 'ubuntu-latest'
111
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
105
112
id : set_name
106
113
run : echo "::set-output name=EPICK_ARCHIVE::epick-${{ steps.set_version.outputs.EPICK_VERSION}}-${{ matrix.target}}"
107
114
- name : Set archive name
@@ -116,7 +123,7 @@ jobs:
116
123
- name : Prepare archive directory
117
124
run : mkdir epick
118
125
- name : Move release files
119
- if : matrix.os == 'ubuntu-latest'
126
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
120
127
run : |
121
128
mv target/release/epick epick/
122
129
- name : Move release files
@@ -128,17 +135,16 @@ jobs:
128
135
mv README.md epick/
129
136
mv LICENSE epick/
130
137
- name : Create archives
131
- if : matrix.os == 'ubuntu-latest'
138
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
132
139
run : |
133
140
tar -zcvf ${{ steps.set_name.outputs.EPICK_ARCHIVE }}.tar.gz epick
134
141
tar -Jcvf ${{ steps.set_name.outputs.EPICK_ARCHIVE }}.tar.xz epick
135
- 7z a ${{ steps.set_name_win.outputs.EPICK_ARCHIVE }}.zip epick
136
142
- name : Create archives
137
143
if : matrix.os == 'windows-latest'
138
144
run : |
139
145
7z a ${{ steps.set_name_win.outputs.EPICK_ARCHIVE }}.zip epick
140
146
- name : Upload gz
141
- if : matrix.os == 'ubuntu-latest'
147
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
142
148
uses : svenstaro/upload-release-action@v2
143
149
with :
144
150
repo_name : wojciechkepka/epick
@@ -148,7 +154,7 @@ jobs:
148
154
tag : ${{ steps.set_version.outputs.EPICK_VERSION }}
149
155
overwrite : true
150
156
- name : Upload xz
151
- if : matrix.os == 'ubuntu-latest'
157
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
152
158
uses : svenstaro/upload-release-action@v2
153
159
with :
154
160
repo_name : wojciechkepka/epick
0 commit comments