${ { github.actor} } is running CI 🚀 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name : GitHub Actions Continuous Integration | |
run-name : ${ { github.actor} } is running CI 🚀 | |
on : [ push] | |
jobs : | |
Continuous-Integration: | |
runs-on: ubuntu-24.04 | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | |
- name: Update OS and get tools | |
run: | | |
sudo apt-get update | |
# Cmucl needs 32-bit libs to run | |
sudo apt-get install gcc-multilib | |
- name: Get cmucl binaries | |
run: | | |
wget -nv https://common-lisp.net/project/cmucl/downloads/snapshots/2024/04/cmucl-2024-04-x86-linux.tar.bz2 | |
wget -nv https://common-lisp.net/project/cmucl/downloads/snapshots/2024/04/cmucl-2024-04-x86-linux.extra.tar.bz2 | |
mkdir snapshot | |
tar -C snapshot -xjf cmucl-2024-04-x86-linux.tar.bz2 | |
tar -C snapshot -xjf cmucl-2024-04-x86-linux.extra.tar.bz2 | |
- name: Build | |
run: | | |
# Regular build | |
bin/build.sh -R -C x86_linux -o snapshot/bin/lisp | |
bin/make-dist.sh -V `git describe --dirty` -I dist linux-4 | |
- name: Unit tests | |
run: | | |
bin/run-unit-tests.sh -l dist/bin/lisp 2>&1 | tee unit-test.log | |
- name: Archive unit test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: unit-tests | |
path: | | |
unit-test.log | |
- name: Ansi tests | |
run: | | |
bin/run-ansi-tests.sh -l dist/bin/lisp | |
- name: Archive ansi-test | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ansi-tests | |
path: | | |
test.log |