Skip to content

Commit

Permalink
Merge pull request #4 from AmpereComputing/action_for_x86_64
Browse files Browse the repository at this point in the history
Action for x86_64
  • Loading branch information
binh-ampere authored Jul 28, 2023
2 parents ad83536 + a54a22b commit 593272c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/build_x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build x86_64

on: [push, pull_request]

jobs:
build-x86_64:

runs-on: ${{ matrix.os }}
env:
IS_WINDOWS: ${{ toJSON(matrix.os == 'windows-latest') }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]

steps:
- uses: actions/checkout@v3

- name: Cache sample-applications
uses: actions/cache@v3
with:
enableCrossOsArchive: False
path: sample-applications
key: sample-applications

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Set up Oracle JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'oracle'
cache: 'maven'

- name: Run build and tests on Linux/MacOS
if: ${{ !fromJSON(env.IS_WINDOWS) }}
run: |
./test.sh
- name: Run build and tests on Windows
if: ${{ fromJSON(env.IS_WINDOWS) }}
run: |
.\Test.ps1
2 changes: 1 addition & 1 deletion load_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ do

if [ 'git' == $dl_type ]; then
DL_BRANCH=`jq -r ".$prog_lang.branch" $BASELINE_JSON`
[ ! -d "$APP_DIR/$prog_lang/$dl_app" ] && git -C $APP_DIR/$prog_lang clone --branch $DL_BRANCH $dl_url
[ ! -d "$APP_DIR/$prog_lang/$dl_app" ] && git -C $APP_DIR/$prog_lang clone --depth 1 --branch $DL_BRANCH $dl_url
elif [ 'wget' == $dl_type ]; then
dl_file=$(basename "$dl_url")
[ ! -f "$APP_DIR/$prog_lang/$dl_file" ] && wget $dl_url -P $APP_DIR/$prog_lang/
Expand Down

0 comments on commit 593272c

Please sign in to comment.