From 6841863bdeac42a315752c2308518967f32caddc Mon Sep 17 00:00:00 2001 From: Nexus <84789900+NexushasTaken@users.noreply.github.com> Date: Mon, 2 Dec 2024 07:51:50 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 891d75d..93f62e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,37 +1,26 @@ name: Main on: [push] jobs: - ubuntu: - runs-on: ubuntu-latest + 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/c3-ubuntu-20.tar.gz + run: wget https://github.com/c3lang/c3c/releases/download/latest/${{ matrix.c3_tar }} + - name: Extract c3 tool - run: tar xvf c3-ubuntu-20.tar.gz - #- name: List directory structure - # run: tree -L 2 - - name: Build with c3 - run: ./c3/c3c build examples_template - debian: - runs-on: debian-11 - 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/c3-linux.tar.gz - - name: Extract c3 tool - run: tar xvf c3-linux.tar.gz - #- name: List directory structure - # run: tree -L 2 + run: tar xvf ${{ matrix.c3_tar }} + - name: Build with c3 run: ./c3/c3c build examples_template