1- name : compile_and_test
1+ name : compile & test lambda-rs
22
33on :
44 push :
5- branches : [ main, dev ]
5+ branches : [ main, dev, vmarcella/lambda-rs ]
66
77 pull_request :
8- branches : [ main, dev ]
8+ branches : [ main, dev, vmarcella/lambda-rs ]
99
1010 workflow_dispatch :
1111
@@ -15,25 +15,12 @@ defaults:
1515
1616jobs :
1717 build_and_test :
18- name : Build & test Lambda on ${{ matrix.os }} with ${{ matrix.cpp-compiler }}.
18+ name : Build lambda-rs on ${{ matrix.os }} with ${{ matrix.rustup-toolchain }}.
1919 runs-on : ${{ matrix.os }}
2020 strategy :
2121 matrix :
22- include :
23- - os : ubuntu-latest
24- c-compiler : gcc-10
25- cpp-compiler : g++-10
26- target : Linux
27-
28- # - os: macos-latest
29- # c-compiler: gcc-11
30- # cpp-compiler: g++-11
31- # target: Macos
32-
33- - os : windows-latest
34- cpp-compiler : cl
35- c-compiler : cl
36- target : Windows
22+ os : [ubuntu-latest, windows-latest, macos-latest]
23+ rustup-toolchain : ["stable"]
3724
3825 steps :
3926 - name : Checkout Repository
@@ -42,29 +29,29 @@ jobs:
4229 - name : Run the projects setup.
4330 run : ./scripts/setup.sh --within-ci true
4431
45- - name : Obtain Randr for glfw & Ninja for building on Ubuntu.
32+ - name : Obtain Xorg for building on Ubuntu.
4633 if : ${{ matrix.os == 'ubuntu-latest' }}
47- run : sudo apt-get update && sudo apt-get install xorg-dev ninja-build
34+ run : sudo apt-get update && sudo apt-get install xorg-dev
4835
4936 - name : Add msbuild to PATH
5037 if : ${{ matrix.os == 'windows-latest' }}
5138 uses : microsoft/setup-msbuild@v1.0.2
5239
53- - name : Obtain Ninja & gcc for building on MacOS.
54- if : ${{ matrix.os == 'macos-latest' }}
55- run : brew install ninja gcc
40+ - name : Install ninja 1.10.2 on windows.
41+ if : ${{ matrix.os == 'windows-latest' }}
42+ run : choco install ninja
43+
44+ - name : Obtain rust toolchain for ${{ matrix.rustup-toolchain }}
45+ run : |
46+ rustup toolchain install ${{ matrix.rustup-toolchain }}
47+ rustup default ${{ matrix.rustup-toolchain }}
5648
57- - name : Compile a release build of lambda
58- run : ./scripts/compile_and_test.sh \
59- --build Release \
60- --cpp-compiler ${{ matrix.cpp-compiler }} \
61- --c-compiler ${{ matrix.c-compiler }} \
62- --os ${{ matrix.target }} \
63- --cores 2
49+ - name : Build Lambda & other default workspace members.
50+ run : cargo build
6451
6552 - uses : actions/setup-ruby@v1
6653 - name : Send Webhook Notification for build status.
67- if : ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
54+ if : ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/vmarcella/lambda-rs' }}
6855 env :
6956 JOB_STATUS : ${{ job.status }}
7057 WEBHOOK_URL : ${{ secrets.LAMBDA_BUILD_WEBHOOK }}
0 commit comments