Skip to content

Commit

Permalink
Fix discrepancies
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcollard committed Sep 25, 2023
2 parents e5af3c1 + 65adbf6 commit d0c0996
Show file tree
Hide file tree
Showing 361 changed files with 10,269 additions and 9,049 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
only:
- develop
docker:
- image: srcml/ubuntu_x86_64_base
- image: srcml/ubuntu:21.10
steps:
- checkout
- run: apt-get update
Expand Down
85 changes: 85 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,52 @@ jobs:
cpack -G WIX -V
- shell: bash
=======
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Ubuntu
shell: bash
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt install antlr libantlr-dev libantlr-java libarchive-dev \
libcurl4-openssl-dev libxml2-utils libxslt1-dev \
ninja-build
curl -L http://www.sdml.cs.kent.edu/build/srcML-1.0.0-Boost.tar.gz | \
sudo tar xz -C /usr/local/include
- name: Setup macOS
shell: bash
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install ninja antlr2 --display-times
curl -L http://www.sdml.cs.kent.edu/build/srcML-1.0.0-Boost.tar.gz | \
sudo tar xz -C /usr/local/include
- name: Setup Windows
uses: microsoft/setup-msbuild@v1
if: ${{ matrix.os == 'windows-latest' }}

- name: Create build directory
shell: bash
run: mkdir build

- name: CMake Setup on Windows
shell: bash
if: ${{ matrix.os == 'windows-latest' }}
working-directory: build
run: |
export UseMultiToolTask=true
cmake ..
- name: CMake Setup on Ubuntu/macOS
shell: bash
>>>>>>> upstream/issue1942
if: ${{ matrix.os != 'windows-latest' }}
working-directory: build
run: |
cmake .. -G Ninja
<<<<<<< HEAD
sudo cmake --build . --config Release --target install

- working-directory: build/dist
Expand All @@ -82,14 +124,57 @@ jobs:
- shell: bash
if: matrix.os == 'macos-latest'
=======

- name: Build
shell: bash
working-directory: build
run: |
export UseMultiToolTask=true
cmake --build . --config Release
- name: Install on Windows
shell: bash
if: ${{ matrix.os == 'windows-latest' }}
working-directory: build
run: |
cmake --build . --config Release --target install
- name: Install on Ubuntu/macOS
shell: bash
if: ${{ matrix.os != 'windows-latest' }}
working-directory: build
run: |
sudo cmake --build . --config Release --target install
- name: Finish install for Ubuntu
shell: bash
if: ${{ matrix.os == 'ubuntu-latest' }}
working-directory: build
run: |
sudo ldconfig
- name: Set PATH for Windows
shell: bash
if: ${{ matrix.os == 'windows-latest' }}
working-directory: build
run: |
echo "/c/Program Files (x86)/srcML/bin" >> $GITHUB_PATH
- name: Run Installed srcml
shell: bash
>>>>>>> upstream/issue1942
working-directory: build
run: |
srcml --version
srcml --text="int a;" -l C++
<<<<<<< HEAD

- shell: bash
if: matrix.os == 'windows-latest'
working-directory: build
run: |
srcml.exe --version
srcml.exe --text="int a;" -l C++
=======
>>>>>>> upstream/issue1942
Loading

0 comments on commit d0c0996

Please sign in to comment.