Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NexushasTaken authored Dec 1, 2024
1 parent 6841863 commit 7cad815
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7cad815

Please sign in to comment.