Update main.yml #11
Workflow file for this run
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: Main | |
on: [push] | |
jobs: | |
examples_template: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, debian-11] | |
c3_tar: [c3-ubuntu-20.tar.gz, c3-linux.tar.gz] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libglfw3 libglfw3-dev libgles2-mesa-dev | |
- name: Download c3 tool | |
run: wget https://github.com/c3lang/c3c/releases/download/latest/${{ matrix.c3_tar }} | |
- name: Extract c3 tool | |
run: tar xvf ${{ matrix.c3_tar }} | |
- name: Build with c3 | |
run: ./c3/c3c build examples_template |