1 on: [push, pull_request]
8 name: Ubuntu 18.04 (for ARMv8 - glibc)
11 - uses: actions/checkout@v2
12 - uses: actions-rs/toolchain@v1
15 target: aarch64-unknown-linux-gnu
18 - name: Install binutils-arm-none-eabi
21 sudo apt-get install binutils-aarch64-linux-gnu
23 - uses: actions-rs/cargo@v1
27 args: --target=aarch64-unknown-linux-gnu
29 - name: Run cargo test
30 uses: actions-rs/cargo@v1
34 args: --target=aarch64-unknown-linux-gnu
37 run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch
39 # - name: Upload binary
40 # uses: actions/upload-artifact@v2
42 # name: 'ouch-aarch64-linux-gnu'
43 # path: target/aarch64-unknown-linux-gnu/release/ouch
47 name: Ubuntu 18.04 (for ARMv7 - glibc)
50 - uses: actions/checkout@v2
51 - uses: actions-rs/toolchain@v1
54 target: armv7-unknown-linux-gnueabihf
57 - name: Install binutils-arm-none-eabi
60 sudo apt-get install binutils-arm-none-eabi
62 - uses: actions-rs/cargo@v1
66 args: --target=armv7-unknown-linux-gnueabihf
68 - name: Run cargo test
69 uses: actions-rs/cargo@v1
73 args: --target=armv7-unknown-linux-gnueabihf
76 run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch
78 # - name: Upload binary
79 # uses: actions/upload-artifact@v2
81 # name: 'ouch-armv7-linux-gnueabihf'
82 # path: target/armv7-unknown-linux-gnueabihf/release/ouch
86 name: Ubuntu 20.04 (musl)
93 - name: Checkout sources
94 uses: actions/checkout@v2
96 - name: Install toolchain
97 uses: actions-rs/toolchain@v1
100 target: x86_64-unknown-linux-musl
103 - name: Install dependencies for musl libc
106 sudo apt-get install musl-tools
108 - name: Run cargo build
109 uses: actions-rs/cargo@v1
112 args: --release --target x86_64-unknown-linux-musl
114 - name: Run cargo test
115 uses: actions-rs/cargo@v1
118 args: --target x86_64-unknown-linux-musl
121 run: strip target/x86_64-unknown-linux-musl/release/ouch
123 - name: Upload binary
124 uses: actions/upload-artifact@v2
126 name: 'ouch-x86_64-linux-musl'
127 path: target/x86_64-unknown-linux-musl/release/ouch
131 name: Ubuntu 18.04 (glibc)
132 runs-on: ubuntu-18.04
138 - name: Checkout sources
139 uses: actions/checkout@v2
141 - name: Install toolchain
142 uses: actions-rs/toolchain@v1
147 - name: Run cargo build
148 uses: actions-rs/cargo@v1
152 - name: Run cargo test
153 uses: actions-rs/cargo@v1
158 run: strip target/release/ouch
160 # - name: Upload binary
161 # uses: actions/upload-artifact@v2
163 # name: 'ouch-x86_64-linux-gnu'
164 # path: target/release/ouch
169 runs-on: macos-latest
175 - name: Checkout sources
176 uses: actions/checkout@v2
178 - name: Install toolchain
179 uses: actions-rs/toolchain@v1
182 target: x86_64-apple-darwin
185 - name: Run cargo build
186 uses: actions-rs/cargo@v1
191 - name: Run cargo test
192 uses: actions-rs/cargo@v1
197 run: strip target/release/ouch
199 - name: Upload binary
200 uses: actions/upload-artifact@v2
202 name: 'ouch-x86_64-apple-darwin'
203 path: target/release/ouch
207 name: Windows Server (MSVC)
208 runs-on: windows-latest
214 - name: Checkout sources
215 uses: actions/checkout@v2
217 - name: Install toolchain
218 uses: actions-rs/toolchain@v1
220 toolchain: ${{ matrix.rust }}
223 - name: Run cargo build
224 uses: actions-rs/cargo@v1
229 - name: Run cargo test
230 uses: actions-rs/cargo@v1
234 - name: Upload binary
235 uses: actions/upload-artifact@v2
237 name: 'ouch-x86_64-pc-windows-msvc'
238 path: target\release\ouch.exe
242 name: Windows Server (MinGW)
243 runs-on: windows-2019
249 - name: Checkout sources
250 uses: actions/checkout@v2
252 - name: Install toolchain
253 uses: actions-rs/toolchain@v1
256 target: x86_64-pc-windows-gnu
259 - name: Run cargo build
260 uses: actions-rs/cargo@v1
263 args: --target x86_64-pc-windows-gnu
265 - name: Run cargo test
266 uses: actions-rs/cargo@v1
269 args: --target x86_64-pc-windows-gnu
271 # - name: Upload binary
272 # uses: actions/upload-artifact@v2
274 # name: 'ouch-x86_64-pc-windows-gnu'
275 # path: target\x86_64-pc-windows-gnu\release\ouch.exe