Skip to content

Commit 06bfdcc

Browse files
authored
Add CI: Ubuntu Build (#18)
Add a simple Ubuntu build to make sure PRs do not break Amrvis' compilation.
1 parent 0de9fb3 commit 06bfdcc

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2022 The AMReX Community
4+
#
5+
# License: BSD-3-Clause-LBNL
6+
# Authors: Axel Huebl
7+
8+
set -eu -o pipefail
9+
10+
sudo apt-get -qqq update
11+
sudo apt-get install -y \
12+
bison \
13+
build-essential \
14+
ca-certificates \
15+
gnupg \
16+
flex \
17+
libice-dev \
18+
libmotif-dev \
19+
libsm-dev \
20+
libx11-dev \
21+
libxext-dev \
22+
libxpm-dev \
23+
libxt-dev \
24+
make \
25+
pkg-config \
26+
python3 \
27+
python3-pip \
28+
wget
29+
30+
#python3 -m pip install -U pip setuptools wheel
31+
#python3 -m pip install -r requirements.txt

.github/workflows/ubuntu.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 🐧 Ubuntu
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.ref }}-${{ github.head_ref }}-ubuntu
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build_gcc:
11+
name: GCC DP 2D Profiling
12+
runs-on: ubuntu-20.04
13+
if: github.event.pull_request.draft == false
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v3
17+
with:
18+
repository: 'AMReX-Codes/amrex'
19+
path: 'amrex'
20+
21+
- name: install dependencies
22+
run: |
23+
.github/workflows/dependencies/gcc.sh
24+
25+
- name: build
26+
run: |
27+
make -j 2 \
28+
AMREX_HOME=./amrex \
29+
USE_PROFPARSER=TRUE

0 commit comments

Comments
 (0)