-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- builds | ||
jobs: | ||
test: | ||
name: Build debug binary Ubuntu Jammy | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:jammy | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install curl and certificates | ||
run: apt-get update && apt-get install -y curl ca-certificates | ||
|
||
- name: Install packages for building binaries | ||
run: apt-get install -y build-essential | ||
|
||
- name: Install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Build pg_split_dump | ||
run: cargo build --verbose | ||
|
||
- name: Archive built pg_split_dump binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pg_split_dump | ||
path: target/debug/pg_split_dump | ||
|
||
- name: Build tar_diff | ||
working-directory: tar_diff | ||
run: cargo build --verbose | ||
|
||
- name: Archive built tar_diff binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tar_diff | ||
path: tar_diff/target/debug/tar_diff |