Skip to content

Commit

Permalink
Release files built by GitHub Actions
Browse files Browse the repository at this point in the history
This is WIP, do not discard Travis and AppVeyor yet !
  • Loading branch information
bcoconni committed Apr 19, 2020
1 parent d086687 commit 127d2d0
Showing 1 changed file with 48 additions and 26 deletions.
74 changes: 48 additions & 26 deletions .github/workflows/cpp-python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,13 @@ jobs:
chmod +x build-wheels.sh
# Build the manylinux1 wheel binary packages
docker run --rm -v $PWD/..:/io quay.io/pypa/manylinux2010_x86_64 /io/build/build-wheels.sh
ls python/dist/
- name: Test wheel package
run: |
pip install jsbsim --no-index -f build/python/dist
python -c "import jsbsim;fdm=jsbsim.FGFDMExec('.', None);print(jsbsim.FGAircraft.__doc__)"
pip uninstall jsbsim -y
# Upload files
- name: Upload Ubuntu packages
uses: actions/upload-artifact@v1
with:
name: Ubuntu-packages
path: build/Ubuntu-packages
- name: Upload wheel packages
uses: actions/upload-artifact@v1
with:
name: Python-wheel-packages-manylinux
path: build/python/dist
- name: On failure - Prepare logs for upload
if: failure()
run: |
Expand All @@ -82,6 +71,22 @@ jobs:
name: Linux.logs
path: logs

# Release files
- name: Upload binaries
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ github.job}} rolling release
tag_name: ${{ github.job }}
prerelease: true
body: |
Contains the ${{ github.job}} packages built from the bleeding edge code
(branch ${{ github.ref }} commit ${{ github.sha}})
files: |
build/*.deb
build/python/dist/*-manylinux1*.whl
Windows:
runs-on: windows-latest
steps:
Expand Down Expand Up @@ -164,21 +169,6 @@ jobs:
mv build\python\dist\*.whl PythonWinPackages
# Upload files
- name: Upload Python wheel packages
uses: actions/upload-artifact@v1
with:
name: Python-wheel-packages-win64
path: PythonWinPackages
- name: Upload JSBSim executable
uses: actions/upload-artifact@v1
with:
name: JSBSim.exe
path: build\src\RelWithDebInfo\JSBSim.exe
- name: Upload aeromatic executable
uses: actions/upload-artifact@v1
with:
name: aeromatic.exe
path: build\utils\aeromatic++\RelWithDebInfo\aeromatic.exe
- name: On failure - Prepare logs for upload
if: failure()
run: |
Expand All @@ -192,6 +182,23 @@ jobs:
name: Windows.logs
path: logs

# Release files
- name: Upload binaries
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ github.job}} rolling release
tag_name: ${{ github.job }}
prerelease: true
body: |
Contains the ${{ github.job}} packages built from the bleeding edge code
(branch ${{ github.ref }} commit ${{ github.sha}})
files: |
build\src\RelWithDebInfo\JSBSim.exe
build\utils\aeromatic++\RelWithDebInfo\aeromatic.exe
build\python\dist\*.whl
MacOSX:
runs-on: macos-latest
steps:
Expand Down Expand Up @@ -261,3 +268,18 @@ jobs:
with:
name: MacOSX.logs
path: logs

# Release files
- name: Upload binaries
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ github.job}} rolling release
tag_name: ${{ github.job }}
prerelease: true
body: |
Contains the ${{ github.job}} packages built from the bleeding edge code
(branch ${{ github.ref }} commit ${{ github.sha}})
files: |
build/python/dist/*.whl

0 comments on commit 127d2d0

Please sign in to comment.