Skip to content

Commit

Permalink
Fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bullno1 committed Nov 1, 2024
1 parent fcc53f6 commit 8ee34b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Executables
name: ${{ github.head_ref || github.ref_name }}
path: bin/*
9 changes: 8 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ compile shims/linux/x11.c ${LINUX_FLAGS}

compile main.c ${FLAGS}

cat .build/commands | parallel --bar --max-procs $(nproc)
if [ -t 1 ]
then
PARALLEL_FLAGS="--bar"
else
PARALLEL_FLAGS="--progress"
fi

cat .build/commands | parallel $PARALLEL_FLAGS --max-procs $(nproc)

objects=$(find .build -name '*.o' -not -path '*.aarch64/*')
cosmoc++ ${FLAGS} -o bin/cosmo-sokol $objects

0 comments on commit 8ee34b3

Please sign in to comment.