Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaGanzin committed Oct 17, 2024
1 parent 151c805 commit 73b61bf
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,20 @@ jobs:

- name: Build on Linux and macOS
run: |
mkdir dist
gcc await.c -o dist/await_${{ matrix.os }} -lpthread
mkdir ${{ matrix.os }}
gcc await.c -o ${{ matrix.os }}/await -lpthread
- name: Generate autocompletion scripts
if: matrix.os == 'ubuntu-latest'
run: |
./dist/await_${{ matrix.os }} --autocomplete-fish > dist/await.fish
./dist/await_${{ matrix.os }} --autocomplete-bash > dist/await.bash
./dist/await_${{ matrix.os }} --autocomplete-zsh > dist/await.zsh
./${{ matrix.os }}/await --autocomplete-fish > ${{ matrix.os }}/await.fish
./${{ matrix.os }}/await --autocomplete-bash > ${{ matrix.os }}/await.bash
./${{ matrix.os }}/await --autocomplete-zsh > ${{ matrix.os }}/await.zsh
- name: Upload
uses: actions/upload-artifact@v4
with:
path: dist
overwrite: true
path: ${{ matrix.os }}

release:
needs: build
Expand Down Expand Up @@ -96,8 +95,8 @@ jobs:
mkdir -p archives
ls -l
tree
tar -czvf archives/await-1.0.5-aarch64-apple-darwin.tar.gz -C dist await-macos-latest
tar -czvf archives/await-1.0.5-x86_64-unknown-linux-gnu.tar.gz -C dist await-ubuntu-latest
tar -czvf archives/await-1.0.5-aarch64-apple-darwin.tar.gz -C macos-latest
tar -czvf archives/await-1.0.5-x86_64-unknown-linux-gnu.tar.gz -C ubuntu-latest
- name: Upload Release Artifacts
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 73b61bf

Please sign in to comment.