Skip to content

Commit

Permalink
Do not do automatic releases on each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed May 11, 2023
1 parent 4411240 commit ebf35c0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ jobs:

name: Building binutils for ${{ matrix.TARGET.OS }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies (Ubuntu)
shell: bash
if: matrix.TARGET.OS == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y build-essential bison file gperf
- name: Configure for mips
shell: bash
run: |
./configure --target=mips-kmc-elf --prefix=/opt/cross --disable-gprof --disable-gdb --disable-werror --host=${{ matrix.TARGET.HOST }} --build=${{ matrix.TARGET.HOST }}
- name: Make
shell: bash
run: |
Expand All @@ -44,11 +46,13 @@ jobs:
make -C libiberty CFLAGS="${{ matrix.TARGET.CFLAGS }}"
make -C gas CFLAGS="${{ matrix.TARGET.CFLAGS }}"
make -C binutils CFLAGS="${{ matrix.TARGET.CFLAGS }}"
- name: Test for file
shell: bash
run: |
test -f binutils/ar
file binutils/ar
- name: Create release archive
shell: bash
run: |
Expand All @@ -68,15 +72,16 @@ jobs:
chmod +x objcopy
chmod +x c++filt
tar -czf ${{ matrix.TARGET.ARCHIVE_NAME }} ar as strip objcopy c++filt
- name: Upload archive
uses: actions/upload-artifact@v2
with:
name: binutils-2.6-${{ matrix.TARGET.OS }}
path: |
${{ matrix.TARGET.ARCHIVE_NAME }}
- name: Update release
uses: johnwbyrd/update-release@v1.0.0
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ matrix.TARGET.ARCHIVE_NAME }}

0 comments on commit ebf35c0

Please sign in to comment.