mirror of
https://github.com/JonathanSalwan/Triton
synced 2026-08-17 10:23:04 -04:00
Update Docker workflow
This commit is contained in:
parent
f70b6d6b96
commit
0f8b2a3bf4
1 changed files with 21 additions and 13 deletions
34
.github/workflows/docker.yml
vendored
34
.github/workflows/docker.yml
vendored
|
|
@ -1,15 +1,23 @@
|
|||
# name: Docker Image CI
|
||||
name: Docker Image CI
|
||||
|
||||
# on: [push, pull_request, workflow_dispatch]
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
# jobs:
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - name: Set Timestamp Variable
|
||||
# run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
|
||||
# - name: Build the Docker image
|
||||
# run: docker build . --file Dockerfile --tag triton-docker:$TIMESTAMP
|
||||
# - name: Run test cases
|
||||
# run: docker run --entrypoint /bin/bash --rm triton-docker:$TIMESTAMP -c 'ctest --test-dir /tmp/triton-build/ --output-on-failure'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Triton repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set timestamp variable
|
||||
run: |
|
||||
echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build . --file Dockerfile --tag triton-docker:$TIMESTAMP
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
docker run --entrypoint /bin/bash --rm triton-docker:$TIMESTAMP -c 'ctest --test-dir /tmp/triton-build/ --output-on-failure'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue