Skip to content

Commit

Permalink
replace to continue-on-error, so release will be created... + bump to…
Browse files Browse the repository at this point in the history
… 3.1.6
  • Loading branch information
harelba committed Nov 26, 2021
1 parent 19bfff3 commit a6617e4
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 35 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/build-and-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ jobs:
gem install fpm
cp dist/fpm-config ~/.fpm
fpm -s dir -t deb --deb-use-file-permissions -p packages/linux/q-text-as-data-3.1.5-1.x86_64.deb --version 3.1.5 ./linux-q=/usr/bin/q USAGE.gz=/usr/share/man/man1/q.1.gz
fpm -s dir -t deb --deb-use-file-permissions -p packages/linux/q-text-as-data-3.1.6-1.x86_64.deb --version 3.1.6 ./linux-q=/usr/bin/q USAGE.gz=/usr/share/man/man1/q.1.gz
- name: Upload DEB Package
uses: actions/[email protected]
with:
name: q-text-as-data-3.1.5-1.x86_64.deb
path: packages/linux/q-text-as-data-3.1.5-1.x86_64.deb
name: q-text-as-data-3.1.6-1.x86_64.deb
path: packages/linux/q-text-as-data-3.1.6-1.x86_64.deb

test-deb-packaging:
runs-on: ubuntu-18.04
Expand All @@ -152,7 +152,7 @@ jobs:
- name: Download DEB
uses: actions/download-artifact@v2
with:
name: q-text-as-data-3.1.5-1.x86_64.deb
name: q-text-as-data-3.1.6-1.x86_64.deb
- name: Install Python for Testing
uses: actions/setup-python@v2
with:
Expand All @@ -164,7 +164,7 @@ jobs:
pip3 install -r test-requirements.txt
- name: Test DEB Package Installation
run: ./dist/test-using-deb.sh ./q-text-as-data-3.1.5-1.x86_64.deb
run: ./dist/test-using-deb.sh ./q-text-as-data-3.1.6-1.x86_64.deb

package-linux-rpm:
needs: [test-linux, create-man]
Expand Down Expand Up @@ -196,12 +196,12 @@ jobs:
gem install fpm
cp dist/fpm-config ~/.fpm
fpm -s dir -t rpm --rpm-use-file-permissions -p packages/linux/q-text-as-data-3.1.5.x86_64.rpm --version 3.1.5 ./linux-q=/usr/bin/q USAGE.gz=/usr/share/man/man1/q.1.gz
fpm -s dir -t rpm --rpm-use-file-permissions -p packages/linux/q-text-as-data-3.1.6.x86_64.rpm --version 3.1.6 ./linux-q=/usr/bin/q USAGE.gz=/usr/share/man/man1/q.1.gz
- name: Upload RPM Package
uses: actions/[email protected]
with:
name: q-text-as-data-3.1.5.x86_64.rpm
path: packages/linux/q-text-as-data-3.1.5.x86_64.rpm
name: q-text-as-data-3.1.6.x86_64.rpm
path: packages/linux/q-text-as-data-3.1.6.x86_64.rpm

test-rpm-packaging:
runs-on: ubuntu-18.04
Expand All @@ -212,9 +212,9 @@ jobs:
- name: Download RPM
uses: actions/download-artifact@v2
with:
name: q-text-as-data-3.1.5.x86_64.rpm
name: q-text-as-data-3.1.6.x86_64.rpm
- name: Retest using RPM
run: ./dist/test-using-rpm.sh ./q-text-as-data-3.1.5.x86_64.rpm
run: ./dist/test-using-rpm.sh ./q-text-as-data-3.1.6.x86_64.rpm

build-mac:
runs-on: macos-11
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
package-mac:
# create-man is not needed, as it's generated inside the brew formula independently
needs: [test-mac]
if: ${{false}}
continue-on-error: true
runs-on: macos-11
steps:
- name: Checkout
Expand All @@ -306,7 +306,7 @@ jobs:
export BRANCH_NAME=master
# TODO temp, since template rendering action doesn't work in mac
cat .github/workflows/q.rb.brew-formula-template | sed 's/{{ .Q_VERSION }}/3.1.5/g' | sed "s/{{ .Q_BRANCH_NAME }}/${BRANCH_NAME}/g" > ./brew/q.rb
cat .github/workflows/q.rb.brew-formula-template | sed 's/{{ .Q_VERSION }}/3.1.6/g' | sed "s/{{ .Q_BRANCH_NAME }}/${BRANCH_NAME}/g" > ./brew/q.rb
echo "Resulting formula:"
cat ./brew/q.rb
Expand All @@ -320,8 +320,8 @@ jobs:
- name: Upload Executable
uses: actions/[email protected]
with:
name: q--3.1.5_1.big_sur.bottle.tar.gz
path: ./q--3.1.5_1.big_sur.bottle.tar.gz
name: q--3.1.6_1.big_sur.bottle.tar.gz
path: ./q--3.1.6_1.big_sur.bottle.tar.gz

# TODO auto-create PR to main homebrew-core
# git clone https://github.com/harelba/homebrew-core.git
Expand All @@ -331,15 +331,15 @@ jobs:

test-mac-packaging:
needs: package-mac
if: ${{false}}
continue-on-error: true
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download q bottle
uses: actions/download-artifact@v2
with:
name: q--3.1.5_1.big_sur.bottle.tar.gz
name: q--3.1.6_1.big_sur.bottle.tar.gz
- name: Test the created bottle
run: |
set -x -e
Expand All @@ -348,7 +348,7 @@ jobs:
WD=$(pwd)
pushd /usr/local/Cellar
tar xvfz ${WD}/q--3.1.5_1.big_sur.bottle.tar.gz
tar xvfz ${WD}/q--3.1.6_1.big_sur.bottle.tar.gz
popd
brew link q
Expand Down Expand Up @@ -458,17 +458,17 @@ jobs:
# TODO Windows versions do not support the -beta postfix
export Q_MSI=./build/x86_64-pc-windows-msvc/release/msi_installer/q-text-as-data-3.1.5.msi
export Q_MSI=./build/x86_64-pc-windows-msvc/release/msi_installer/q-text-as-data-3.1.6.msi
chmod 755 $Q_MSI
mkdir -p packages/windows/
cp $Q_MSI packages/windows/q-text-as-data-3.1.5.msi
cp $Q_MSI packages/windows/q-text-as-data-3.1.6.msi
- name: Upload Windows MSI
uses: actions/[email protected]
with:
name: q-text-as-data-3.1.5.msi
path: packages/windows/q-text-as-data-3.1.5.msi
name: q-text-as-data-3.1.6.msi
path: packages/windows/q-text-as-data-3.1.6.msi

test-windows-packaging:
needs: package-windows
Expand All @@ -479,12 +479,12 @@ jobs:
- name: Download Windows Package
uses: actions/download-artifact@v2
with:
name: q-text-as-data-3.1.5.msi
name: q-text-as-data-3.1.6.msi
- name: Test Install of MSI
continue-on-error: true
shell: powershell
run: |
$process = Start-Process msiexec.exe -ArgumentList "/i q-text-as-data-3.1.5.msi -l* msi-install.log /norestart /quiet" -PassThru -Wait
$process = Start-Process msiexec.exe -ArgumentList "/i q-text-as-data-3.1.6.msi -l* msi-install.log /norestart /quiet" -PassThru -Wait
$process.ExitCode
gc msi-install.log
Expand All @@ -493,7 +493,7 @@ jobs:
continue-on-error: true
shell: powershell
run: |
$process = Start-Process msiexec.exe -ArgumentList "/u q-text-as-data-3.1.5.msi /norestart /quiet" -PassThru -Wait
$process = Start-Process msiexec.exe -ArgumentList "/u q-text-as-data-3.1.6.msi /norestart /quiet" -PassThru -Wait
$process.ExitCode
exit $process.ExitCode
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/q.rb.brew-formula-template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class Q < Formula
desc "Run SQL directly on CSV or TSV files"
homepage "https://harelba.github.io/q/"
url "https://github.com/harelba/q/archive/v3.1.5.tar.gz"
url "https://github.com/harelba/q/archive/v3.1.6.tar.gz"

sha256 "0f4656b19087332d5113dd38907b50d70c55a57b3e97f810b8090132412dc9fb"

Expand Down
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ q "select count(*) from some_db.sqlite3:::albums a left join another_db.sqlite
Detailed examples are in [here](http://harelba.github.io/q/#examples)

## Installation.
**New Major Version `3.1.5` is out with a lot of significant additions.**
**New Major Version `3.1.6` is out with a lot of significant additions.**

Instructions for all OSs are [here](http://harelba.github.io/q/#installation).

Expand Down
2 changes: 1 addition & 1 deletion bin/q.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from sqlite3.dbapi2 import OperationalError
from uuid import uuid4

q_version = '3.1.5'
q_version = '3.1.6'

#__all__ = [ 'QTextAsData' ]

Expand Down
12 changes: 6 additions & 6 deletions mkdocs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ Download the tool using the links in the [installation](#installation) below and
| Format | Instructions | Comments |
:---|:---|:---|
|[OSX](https://github.com/harelba/q/releases/download/v3.1.5/macos-q)|`brew install` will install the previous `2.0.19` for now, until homebrew approves the new version. In the mean time, you can download the new version executable from the link, `chmod +x` it and then run. You might need to run it the first time from Finder using Right-Click -> Open, and then click the Open button. After the first time, it will run from the command line without any issues. |A man page is available, just run `man q`||
|[RPM Package](https://github.com/harelba/q/releases/download/v3.1.5/q-text-as-data-3.1.5.x86_64.rpm)| run `rpm -ivh <package-filename>` or `rpm -U <package-filename>` if you already have an older version of q.| A man page is available for this release. Just enter `man q`.|
|[DEB Package](https://github.com/harelba/q/releases/download/v3.1.5/q-text-as-data-3.1.5-1.x86_64.deb)| Run `sudo dpkg -i <package-filename>`|A man page is available for this release. Just enter `man q`. Some installations don't install the man page properly for some reason. I'll fix this soon|
|[Windows Installer](https://github.com/harelba/q/releases/download/v3.1.5/q-text-as-data-3.1.5.msi)|Run the installer executable and hit next next next... q.exe will be added to the PATH so you can access it everywhere.|Windows doesn't update the PATH retroactively for open windows, so you'll need to open a new `cmd`/`bash` window after the installation is done.|
|[Source tar.gz](https://github.com/harelba/q/archive/refs/tags/v3.1.5.tar.gz)|Full source file tree for latest stable version. Note that q.py cannot be used directly anymore, as it requires python dependencies||
|[Source zip](https://github.com/harelba/q/archive/refs/tags/v3.1.5.zip)|Full source file tree for the latest stable version. Note that q.py cannot be used directly anymore, as it requires python dependencies||
|[OSX](https://github.com/harelba/q/releases/download/v3.1.6/macos-q)|`brew install` will install the previous `2.0.19` for now, until homebrew approves the new version. In the mean time, you can download the new version executable from the link, `chmod +x` it and then run. You might need to run it the first time from Finder using Right-Click -> Open, and then click the Open button. After the first time, it will run from the command line without any issues. |A man page is available, just run `man q`||
|[RPM Package](https://github.com/harelba/q/releases/download/v3.1.6/q-text-as-data-3.1.6.x86_64.rpm)| run `rpm -ivh <package-filename>` or `rpm -U <package-filename>` if you already have an older version of q.| A man page is available for this release. Just enter `man q`.|
|[DEB Package](https://github.com/harelba/q/releases/download/v3.1.6/q-text-as-data-3.1.6-1.x86_64.deb)| Run `sudo dpkg -i <package-filename>`|A man page is available for this release. Just enter `man q`. Some installations don't install the man page properly for some reason. I'll fix this soon|
|[Windows Installer](https://github.com/harelba/q/releases/download/v3.1.6/q-text-as-data-3.1.6.msi)|Run the installer executable and hit next next next... q.exe will be added to the PATH so you can access it everywhere.|Windows doesn't update the PATH retroactively for open windows, so you'll need to open a new `cmd`/`bash` window after the installation is done.|
|[Source tar.gz](https://github.com/harelba/q/archive/refs/tags/v3.1.6.tar.gz)|Full source file tree for latest stable version. Note that q.py cannot be used directly anymore, as it requires python dependencies||
|[Source zip](https://github.com/harelba/q/archive/refs/tags/v3.1.6.zip)|Full source file tree for the latest stable version. Note that q.py cannot be used directly anymore, as it requires python dependencies||
I will add packages for additional Linux Distributions if there's demand for it. If you're interested in another Linux distribution, please ping me. It's relatively easy to add new ones with the new packaging flow.
Expand Down
2 changes: 1 addition & 1 deletion pyoxidizer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def make_msi(exe):
# The name of your application.
"q-text-as-data",
# The version of your application.
"3.1.5",
"3.1.6",
# The author/manufacturer of your application.
"Harel Ben-Attia"
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup
import setuptools

q_version = '3.1.5'
q_version = '3.1.6'

with open("README.markdown", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit a6617e4

Please sign in to comment.