Skip to content

notification-push-main #401

notification-push-main

notification-push-main #401

Workflow file for this run

name: CI
permissions:
contents: write
on:
push:
branches: [main]
repository_dispatch:
types: [notification-push-main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: erg-lang/[email protected]
with:
build: 'nightly'
- name: Install erg_compiler module
run: |
pip install maturin
git clone https://github.com/erg-lang/erg
cd erg
echo "branch: '${{ github.event.client_payload.branch }}'"
if [ -z "${{ github.event.client_payload.branch }}" ]; then
git checkout main
else
git checkout ${{ github.event.client_payload.branch }}
fi
erg bump_version.er -- patch
cd crates/erg_compiler
maturin build --release --features pylib_compiler
cd ../../
pip install $(ls target/wheels/*.whl)
cd ../
- name: Test
run: |
poise test --pip-check