Skip to content

Commit

Permalink
original ci workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Dec 5, 2023
1 parent cc854b4 commit 68a0e01
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 59 deletions.
116 changes: 57 additions & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,67 +3,65 @@ on:
push:
branches:
- main
workflow_dispatch: {}
pull_request:
types: [opened, labeled, synchronize]
branches:
- main

jobs:
test:
docker-image:
uses: ./.github/workflows/docker.yml
linux-build:
runs-on: ubuntu-latest
needs: [docker-image]
container:
image: ghcr.io/llnl/scaleuprom/scaleuprom_env:latest
options: --user 1001 --privileged
volumes:
- /mnt:/mnt
steps:
- name: test ci
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- name: Check out scaleupROM
uses: actions/checkout@v3
- name: Build scaleupROM
run: |
echo "test run"
# docker-image:
# uses: ./.github/workflows/docker.yml
# linux-build:
# runs-on: ubuntu-latest
# needs: [docker-image]
# container:
# image: ghcr.io/llnl/scaleuprom/scaleuprom_env:latest
# options: --user 1001 --privileged
# volumes:
# - /mnt:/mnt
# steps:
# - name: Cancel previous runs
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}
# - name: Set Swap Space
# uses: pierotofy/set-swap-space@master
# with:
# swap-size-gb: 10
# - name: Check out scaleupROM
# uses: actions/checkout@v3
# - name: Build scaleupROM
# run: |
# mkdir ${GITHUB_WORKSPACE}/build
# cd ${GITHUB_WORKSPACE}/build
# cmake .. -DBUILD_SKETCHES=On
# make -j 4
# - name: Upload the compiled artifacts
# uses: actions/upload-artifact@master
# with:
# name: build-dir
# path: ${GITHUB_WORKSPACE}/build
# linux-test:
# runs-on: ubuntu-latest
# needs: [docker-image, linux-build]
# container:
# image: ghcr.io/llnl/scaleuprom/scaleuprom_env:latest
# options: --user 1001 --privileged
# volumes:
# - /mnt:/mnt
# steps:
# - name: Cancel previous runs
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}
# - name: Set Swap Space
# uses: pierotofy/set-swap-space@master
# with:
# swap-size-gb: 10
# - name: Check out scaleupROM
# uses: actions/checkout@v3
# - name: Download the compiled artifacts
# uses: actions/download-artifact@master
# with:
# name: build-dir
mkdir ${GITHUB_WORKSPACE}/build
cd ${GITHUB_WORKSPACE}/build
cmake .. -DBUILD_SKETCHES=On
make -j 4
- name: Upload the compiled artifacts
uses: actions/upload-artifact@master
with:
name: build-dir
path: ${GITHUB_WORKSPACE}/build
linux-test:
runs-on: ubuntu-latest
needs: [docker-image, linux-build]
container:
image: ghcr.io/llnl/scaleuprom/scaleuprom_env:latest
options: --user 1001 --privileged
volumes:
- /mnt:/mnt
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- name: Check out scaleupROM
uses: actions/checkout@v3
- name: Download the compiled artifacts
uses: actions/download-artifact@master
with:
name: build-dir
File renamed without changes.

0 comments on commit 68a0e01

Please sign in to comment.