-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.37 KB
/
main-ubuntu-jammy.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
name: CI
on:
push:
branches:
- main
jobs:
build:
name: Build debug binary Ubuntu Jammy
runs-on: ubuntu-22.04
strategy:
matrix:
architecture:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
fail-fast: false
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.architecture }}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --target ${{ matrix.architecture }}
- name: Build pg_split_dump
run: cross build --verbose --target ${{ matrix.architecture }}
- name: Archive built pg_split_dump binary
uses: actions/upload-artifact@v3
with:
name: pg_split_dump-${{ matrix.architecture }}
path: target/${{ matrix.architecture }}/debug/pg_split_dump
- name: Build tar_diff
working-directory: tar_diff
run: cross build --verbose --target ${{ matrix.architecture }}
- name: Archive built tar_diff binary
uses: actions/upload-artifact@v3
with:
name: tar_diff-${{ matrix.architecture }}
path: tar_diff/target/${{ matrix.architecture }}/debug/tar_diff