Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub build to latest #106

Merged
merged 3 commits into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 19 additions & 58 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
name: Build
on: [push, pull_request]
jobs:
build-macos-catalina:
runs-on: macos-10.15
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
shell: bash
run: |
Expand All @@ -29,35 +29,33 @@ jobs:
run: |
cd Build
cpack
cp oneD*.pkg ../svOneDSolver-macOS-Catalina.pkg
cp oneD*.pkg ../svOneDSolver-macOS.pkg
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: macOS Catalina Installer
path: svOneDSolver-macOS-Catalina.pkg
name: macOS Installer
path: svOneDSolver-macOS.pkg
if-no-files-found: error
- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: svOneDSolver-macOS-Catalina.pkg
asset_name: svOneDSolver-${{github.ref_name}}-macOS-Catalina.pkg
file: svOneDSolver-macOS.pkg
asset_name: svOneDSolver-${{github.ref_name}}-macOS.pkg
tag: ${{ github.ref }}

build-ubuntu-20:
runs-on: ubuntu-20.04
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: sudo apt-get install gcc-8 g++-8
run: sudo apt-get install gcc g++
- name: Build
shell: bash
run: |
export CC=/usr/bin/gcc-8
export CXX=/usr/bin/g++-8
mkdir Build
cd Build
cmake .. -DBUILD_SV_INSTALLER=ON
Expand All @@ -67,64 +65,27 @@ jobs:
run: |
cd Build
cpack
cp oneD*.deb ../svOneDSolver-Ubuntu-20.deb
cp oneD*.deb ../svOneDSolver-Ubuntu.deb
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Ubuntu 20 Installer
path: svOneDSolver-Ubuntu-20.deb
name: Ubuntu Installer
path: svOneDSolver-Ubuntu.deb
if-no-files-found: error
- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: svOneDSolver-Ubuntu-20.deb
asset_name: svOneDSolver-${{github.ref_name}}-Ubuntu-20.deb
file: svOneDSolver-Ubuntu.deb
asset_name: svOneDSolver-${{github.ref_name}}-Ubuntu.deb
tag: ${{ github.ref }}

build-ubuntu-18:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
shell: bash
run: |
sudo apt-get install zip
- name: Build
shell: bash
run: |
mkdir Build
cd Build
cmake .. -DBUILD_SV_INSTALLER=ON
make -j2
- name: Create installer
shell: bash
run: |
cd Build
cpack
cp oneD*.deb ../svOneDSolver-Ubuntu-18.deb
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Ubuntu 18 Installer
path: svOneDSolver-Ubuntu-18.deb
if-no-files-found: error
- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: svOneDSolver-Ubuntu-18.deb
asset_name: svOneDSolver-${{github.ref_name}}-Ubuntu-18.deb
tag: ${{ github.ref }}

build-windows:
runs-on: windows-2019
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Cygwin
uses: cygwin/cygwin-install-action@master
with:
Expand Down
Loading