Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 23, 2024
1 parent 1124aae commit cdbf6a8
Showing 1 changed file with 28 additions and 40 deletions.
68 changes: 28 additions & 40 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,8 @@ on:
branches: ["main"]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- name: Linux
os: ubuntu-latest
# - name: macOS
# os: macos-latest
# - name: Windows
# os: windows-latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
name: 'Build docker image'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -30,23 +20,20 @@ jobs:
run: |
brew install docker
colima start
- run: docker build -t lean4monaco .
# - name: Set up Docker
# uses: docker/setup-buildx-action@v3
# - name: Build server docker image
# uses: docker/build-push-action@v6
# with:
# push: false
# tags: lean4monaco:latest
# outputs: type=docker,dest=/tmp/lean4monaco.tar
# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# name: lean4monaco
# path: /tmp/lean4monaco.tar
# # test:
# # needs: build
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build server docker image
uses: docker/build-push-action@v6
with:
tags: lean4monaco:latest
outputs: type=docker,dest=/tmp/lean4monaco.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: lean4monaco
path: /tmp/lean4monaco.tar
test:
needs: build
# # strategy:
# # fail-fast: false
# # matrix:
Expand All @@ -59,10 +46,11 @@ jobs:
# # os: windows-latest
# # name: ${{ matrix.name }}
# # runs-on: ${{ matrix.os }}
# # steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
submodules: true
# - uses: leanprover/lean-action@v1
# if: matrix.os != 'windows-latest'
# with:
Expand Down Expand Up @@ -90,13 +78,13 @@ jobs:
# - name: Build
# run: npm run build
# - run: npm run setup_demo
# - name: Download server image
# uses: actions/download-artifact@v4
# with:
# name: lean4monaco
# path: /tmp
# - name: Load server image
# run: docker load --input /tmp/lean4monaco.tar
- name: Download server image
uses: actions/download-artifact@v4
with:
name: lean4monaco
path: /tmp
- name: Load server image
run: docker load --input /tmp/lean4monaco.tar
- name: Start server
run: docker run -dit -p 5173:5173 -p 8080:8080 lean4monaco
- name: Run tests
Expand Down

0 comments on commit cdbf6a8

Please sign in to comment.