Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Improve based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Feb 1, 2022
1 parent 1ab0755 commit d27ca7f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,27 @@ on:
workflow_dispatch:
# Allow to run manually

concurrency:
# Cancel previous runs of this workflow for the same branc
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/sagemath/sage/sage-docker-ubuntu-focal-standard-with-targets:9.5
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2

- name: Setup environment
- name: Prepare
run: |
# Populate SAGE_LOCAL based on the built SAGE_LOCAL contained in the Docker image
mv /sage/local local
rm -Rf /sage/local
ln -sf "$(pwd)"/local /sage/local
# Reuse built SAGE_LOCAL contained in the Docker image
./bootstrap
./configure --enable-build-as-root --prefix=/sage/local
- name: Build
run: |
./bootstrap
./configure --enable-build-as-root
make build
run: make build
env:
MAKE: make -j2
SAGE_NUM_THREADS: 2
Expand Down

0 comments on commit d27ca7f

Please sign in to comment.