diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93f62e6..efa648d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,6 @@ jobs: 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 @@ -16,11 +15,14 @@ jobs: sudo apt-get update sudo apt-get install libglfw3 libglfw3-dev libgles2-mesa-dev + - name: Set tarball based on OS + run: echo "TARBALL_URL=https://github.com/c3lang/c3c/releases/download/latest/c3-${{ matrix.os == 'ubuntu-latest' && 'ubuntu-20' || 'linux' }}.tar.gz" >> $GITHUB_ENV + - name: Download c3 tool - run: wget https://github.com/c3lang/c3c/releases/download/latest/${{ matrix.c3_tar }} + run: wget ${{ env.TARBALL_URL }} - name: Extract c3 tool - run: tar xvf ${{ matrix.c3_tar }} + run: tar xvf c3-*.tar.gz - name: Build with c3 run: ./c3/c3c build examples_template