Skip to content

Commit

Permalink
publish releases (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Aug 22, 2021
1 parent 10db562 commit 7e8979a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
- {
OS: 'ubuntu-latest',
CFLAGS: '-std=gnu89 -m32 -static',
HOST: 'i386-pc-linux'
HOST: 'i386-pc-linux',
ARCHIVE_NAME: 'linux.tar.gz'
}
- {
OS: 'macos-latest',
CFLAGS: '-std=gnu89 -Wno-return-type -Wno-error -Wno-implicit-function-declaration',
HOST: 'i386-apple-darwin'
HOST: 'i386-apple-darwin',
ARCHIVE_NAME: 'mac.tar.gz'
}

name: Building cc1 for ${{ matrix.TARGET.OS }}
Expand Down Expand Up @@ -60,3 +62,14 @@ jobs:
cpp
cc1
xgcc
- name: Create release archive
shell: bash
run: |
cp xgcc gcc
tar -czf ${{ matrix.TARGET.ARCHIVE_NAME }} cpp cc1 gcc
- name: Update release
uses: johnwbyrd/[email protected]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ matrix.TARGET.ARCHIVE_NAME }}

0 comments on commit 7e8979a

Please sign in to comment.