Skip to content

Commit

Permalink
Merge pull request #16 from staktrace/mysql
Browse files Browse the repository at this point in the history
Add version 8.0.36 to macos as well
  • Loading branch information
staktrace authored Jan 18, 2024
2 parents a8b09af + dc6b572 commit d30fe02
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/mysql-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- mysql
jobs:
mysql-client-macos:
mysql-client-macos11:
strategy:
matrix:
binary: [mysql, mysqladmin]
Expand All @@ -29,6 +29,30 @@ jobs:
allowUpdates: true
artifacts: ${{ matrix.binary }}-${{ matrix.version }}-macos11-${{ matrix.arch }}.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
mysql-client-macos14:
strategy:
matrix:
binary: [mysql, mysqladmin]
arch: [x86_64, arm64]
version: [8.0.36]
name: Make a lightweight package for the ${{ matrix.arch }} ${{ matrix.binary }} blnary v${{ matrix.version }}
runs-on: ubuntu-latest
steps:
- name: Download source package
run: curl -SsfL "https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-${{ matrix.version }}-macos14-${{ matrix.arch }}.tar.gz" -o mysql-client.tar.gz
- name: Unpack source package
run: tar xzf mysql-client.tar.gz
- name: Remove unwanted binaries
run: pushd mysql-${{ matrix.version }}-macos14-${{ matrix.arch }}/bin/ && (ls -1 | grep -v '^${{ matrix.binary }}$' | xargs rm) && popd
- name: Repack package
run: tar czf ${{ matrix.binary }}-${{ matrix.version }}-macos14-${{ matrix.arch }}.tar.gz mysql-${{ matrix.version }}-macos14-${{ matrix.arch }}
- name: Upload Release
uses: ncipollo/release-action@v1
with:
tag: mysql-client
allowUpdates: true
artifacts: ${{ matrix.binary }}-${{ matrix.version }}-macos14-${{ matrix.arch }}.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
mysql-client-linux:
strategy:
matrix:
Expand Down

0 comments on commit d30fe02

Please sign in to comment.