-
Notifications
You must be signed in to change notification settings - Fork 4
executable file
·51 lines (41 loc) · 1.12 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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