| 1 |
name: USAN test |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "master" ] |
| 6 |
pull_request: |
| 7 |
branches: [ "master" ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
build: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
services: |
| 13 |
minio: |
| 14 |
# fixme: let's not depend on external unofficial image |
| 15 |
image: lazybit/minio |
| 16 |
ports: |
| 17 |
- 9000:9000 |
| 18 |
env: |
| 19 |
MINIO_ROOT_USER: accesskey |
| 20 |
MINIO_ROOT_PASSWORD: password |
| 21 |
options: --name=minio --health-cmd "curl http://localhost:9000/minio/health/live" |
| 22 |
|
| 23 |
env: |
| 24 |
S3KEY: accesskey |
| 25 |
S3SECRET: password |
| 26 |
S3REGION: "" |
| 27 |
S3BUCKET: s3-test |
| 28 |
S3HOST: 127.0.0.1 |
| 29 |
S3PORT: 9000 |
| 30 |
S3USEHTTP: 1 |
| 31 |
CC: clang |
| 32 |
CFLAGS: "-fsanitize=undefined -fsanitize=nullability" |
| 33 |
|
| 34 |
steps: |
| 35 |
- uses: actions/checkout@v4 |
| 36 |
- name: Create bucket |
| 37 |
run: | |
| 38 |
wget https://dl.min.io/client/mc/release/linux-amd64/mc |
| 39 |
chmod +x ./mc |
| 40 |
./mc alias set minio http://127.0.0.1:9000 accesskey password |
| 41 |
./mc mb --ignore-existing minio/s3-test |
| 42 |
- name: Install deps |
| 43 |
run: | |
| 44 |
sudo apt-get update |
| 45 |
sudo apt-get install -y libcurl4-openssl-dev |
| 46 |
- name: Build libmarias3 |
| 47 |
run: | |
| 48 |
autoreconf -fi |
| 49 |
./configure --enable-debug=yes |
| 50 |
make |
| 51 |
- name: Test |
| 52 |
run: |
| 53 |
make check |