Skip to content

Checks that CI still works after Ubuntu migration #84

Checks that CI still works after Ubuntu migration

Checks that CI still works after Ubuntu migration #84

Workflow file for this run

name: Build and test Postgres Standard Library
on:
push:
branches:
- 1.67.1
- rust-1.69.0
- rust-1.70.0
- rust-1.71.0
- rust-1.71.1
- rust-1.72.0
pull_request:
branches:
- 1.67.1
- rust-1.69.0
- rust-1.70.0
- rust-1.71.0
- rust-1.71.1
- rust-1.72.0
jobs:
test_x86_84:
name: "x86_64 (cross: aarch64) build & test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install system dependencies
run: |
sudo apt-get -y update && sudo apt-get install -y \
clang-11 \
llvm-11 \
clang \
gcc \
make \
build-essential \
libz-dev \
zlib1g-dev \
strace \
libssl-dev \
pkg-config \
crossbuild-essential-arm64
- name: Install rust
run: |
export RUSTUP_HOME="$HOME/.rustup"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
cargo --version
- name: Build postgrestd for both x86_64 and aarch64
run: ./run install
env:
CARGO_TARGET_AARCH64_POSTGRES_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CARGO_TARGET_X86_64_POSTGRES_LINUX_GNU_LINKER: cc
test_aarch64:
name: "aarch64 (cross: x86_64) build & test"
runs-on: [self-hosted, linux, ARM64, launch_template_id__lt-0a56ee65c272f154e]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Show kernel info
run: uname -a
- name: Print env
run: env
- name: Install system dependencies
run: |
sudo apt-get -y update && sudo apt-get install -y \
clang-11 \
llvm-11 \
clang \
gcc \
make \
build-essential \
libz-dev \
zlib1g-dev \
strace \
libssl-dev \
pkg-config \
crossbuild-essential-amd64
- name: Install rust
run: |
export RUSTUP_HOME="$HOME/.rustup"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
echo "RUSTUP_HOME=$HOME/.rustup" >> $GITHUB_ENV
echo "PATH=$HOME/.cargo/bin:$PATH" >> $GITHUB_ENV
cargo --version
- name: Build postgrestd for both aarch64 and x86_64
run: ./run install
env:
CARGO_TARGET_X86_64_POSTGRES_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc
CARGO_TARGET_AARCH64_POSTGRES_LINUX_GNU_LINKER: cc
test_macos:
name: "macos build & test (experimental)"
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install rust
run: |
export RUSTUP_HOME="$HOME/.rustup"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup toolchain install 1.72.0
cargo --version
- name: Print env
run: env
- name: Build/install both apple targets
run: ./run install