Skip to content

Removed missing symlink tests/a946f8564442.tar.xz #39

Removed missing symlink tests/a946f8564442.tar.xz

Removed missing symlink tests/a946f8564442.tar.xz #39

Workflow file for this run

name: Euphoria
on:
push:
branches:
- master
tags:
- 4.2*
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-euphoria:
name: Build Euphoria
runs-on: ubuntu-20.04
strategy:
matrix:
platform: [linux-arm, linux-x86, linux-x64, windows-x86, windows-x64]
defaults:
run:
working-directory: ./source
steps:
- name: Checkout euphoria
id: checkout-euphoria-repo
uses: actions/checkout@v4
- name: Checkout creole
id: checkout-creole-repo
uses: actions/checkout@v4
with:
repository: OpenEuphoria/creole
path: source/creole
ref: master
- name: Checkout eudoc
id: checkout-eudoc-repo
uses: actions/checkout@v4
with:
repository: OpenEuphoria/eudoc
path: source/eudoc
ref: master
- name: Install Compilers (Linux ARM)
id: install-compilers-linux-arm
if: matrix.platform == 'linux-arm'
run: sudo apt-get -qy install {binutils,gcc}-arm-linux-gnueabihf
- name: Install Compilers (Linux x86)
id: install-compilers-linux-x86
if: matrix.platform == 'linux-x86'
run: sudo apt-get -qy install {binutils,gcc}-i686-linux-gnu
- name: Install Compilers (Windows x86)
id: install-compilers-windows-x86
if: matrix.platform == 'windows-x86'
run: sudo apt-get -qy install {binutils,gcc}-mingw-w64-i686
- name: Install Compilers (Windows x64)
id: install-compilers-windows-x64
if: matrix.platform == 'windows-x64'
run: sudo apt-get -qy install {binutils,gcc}-mingw-w64-x86-64
- name: Install Ccache
id: install-ccache
run: sudo apt-get -qy install ccache
- name: Install Euphoria
id: install-euphoria
run: |
wget -q https://github.com/OpenEuphoria/euphoria/releases/download/4.1.0/euphoria-4.1.0-Linux-x64-57179171dbed.tar.gz -O- | sudo tar -C /usr/local -xz euphoria-4.1.0-Linux-x64/{bin,include}
cd /usr/local/bin; sudo find /usr/local/euphoria-4.1.0-Linux-x64/bin -type f -executable -exec ln -s {} \;
- name: Save/Load Cache
id: save-load-cache
uses: actions/cache@v4
with:
path: ~/.cache/ccache/
key: ccache=${{matrix.platform}}
- name: Build Euphoria
id: build-euphoria
run: |
make -f build.mak -j$(nproc) PLATFORM=${{matrix.platform}} USE_CCACHE=1 WITH_CREOLE=1 WITH_EUDOC=1
echo "euphoria-version=$(./build/echoversion)" >> $GITHUB_ENV
- name: Get Short Hash
id: get-short-hash
uses: benjlevesque/[email protected]
- name: Upload Artifacts
id: upload-artifacts
uses: actions/upload-artifact@v4
with:
name: euphoria-${{env.euphoria-version}}-${{matrix.platform}}-${{env.SHA}}
path: |
./source/build-${{matrix.platform}}/
./source/config-${{matrix.platform}}}.gnu
!./source/build/**/*.o
- name: Publish Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ../docs/release/${{env.euphoria-version}}.txt
prerelease: true
files: euphoria-${{env.euphoria-version}}-${{matrix.platform}}-${{env.SHA}}.*