Merge pull request #46 from cyrus-lang/refactor-compiler #57
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: Build & Upload Cyrus Lang | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build-linux: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential gcc | |
- name: Download and install GCC fork | |
run: | | |
curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-15.deb | |
sudo dpkg --force-overwrite -i gcc-15.deb | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Collect files in single directory | |
run: | | |
mkdir cyrus | |
cp ./target/release/cyrus ./cyrus | |
cp ./scripts/install.sh ./cyrus | |
cp -r ./stdlib ./cyrus | |
- name: Upload as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cyrus-linux | |
path: ./cyrus |