Retro68/azure-pipelines.yml

98 lines
2.9 KiB
YAML
Raw Normal View History

2019-09-27 21:06:18 +00:00
trigger:
- master
jobs:
- job: Linux
2021-12-08 22:18:05 +00:00
condition: false
2019-09-27 21:06:18 +00:00
pool:
vmImage: 'ubuntu-20.04'
2019-09-27 21:06:18 +00:00
steps:
- checkout: self
submodules: true
- script: |
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
2019-09-27 21:06:18 +00:00
cmake libgmp-dev libmpfr-dev libmpc-dev \
libboost-all-dev bison texinfo \
ruby flex curl
displayName: 'Install prerequisites'
2019-09-27 21:06:18 +00:00
- script: |
mkdir build
cd build
2019-11-11 23:07:39 +00:00
../build-toolchain.bash
displayName: 'Build'
2019-09-28 22:22:44 +00:00
- script: |
cd build
curl -L -O https://github.com/autc04/executor/releases/download/v0.1.0/Executor2000-0.1.0-Linux.tar.bz2
2019-09-28 22:22:44 +00:00
tar xfvj Executor2000-0.1.0-Linux.tar.bz2 Executor2000-0.1.0-Linux/bin/executor-headless
echo "executor-path=`pwd`/Executor2000-0.1.0-Linux/bin/executor-headless" > ~/.LaunchAPPL.cfg
echo "emulator=executor" >> ~/.LaunchAPPL.cfg
2019-11-11 23:07:39 +00:00
ctest --no-compress-output -T test -E Carbon || true
displayName: Run Tests using Executor 2000
2019-09-28 22:22:44 +00:00
- task: PublishTestResults@2
inputs:
testResultsFormat: 'CTest'
testResultsFiles: build/Testing/**/*.xml
buildPlatform: 'x86_64-linux'
2019-09-27 21:06:18 +00:00
- job: macOS
2021-12-08 22:18:05 +00:00
condition: false
2019-09-27 21:06:18 +00:00
pool:
vmImage: 'macOS-10.14'
steps:
- checkout: self
submodules: true
- script: |
brew install boost cmake gmp mpfr libmpc bison
displayName: 'Brew prerequisites'
2019-09-27 21:06:18 +00:00
- script: |
mkdir build
cd build
2019-11-11 23:07:39 +00:00
../build-toolchain.bash
displayName: Build
- script: |
cd build
curl -L -O https://github.com/autc04/executor/releases/download/v0.1.0/Executor2000-0.1.0-Darwin.tar.bz2
tar xfvj Executor2000-0.1.0-Darwin.tar.bz2 Executor2000-0.1.0-Darwin/bin/executor-headless
echo "executor-path=`pwd`/Executor2000-0.1.0-Darwin/bin/executor-headless" > ~/.LaunchAPPL.cfg
echo "emulator=executor" >> ~/.LaunchAPPL.cfg
2019-11-11 23:07:39 +00:00
ctest --no-compress-output -T test -E Carbon || true
displayName: Run Tests using Executor 2000
- task: PublishTestResults@2
inputs:
testResultsFormat: 'CTest'
testResultsFiles: build/Testing/**/*.xml
buildPlatform: 'x86_64-macos'
2021-12-08 21:40:19 +00:00
2021-12-08 21:41:50 +00:00
- job: nix_68k
2021-12-08 21:40:19 +00:00
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: true
- script: |
2021-12-08 22:45:58 +00:00
docker run --name nix -v`pwd`:/src nixos/nix:latest nix-build src -A m68k.retro68.samples
displayName: Build inside nixos/nix docker
2021-12-08 22:14:39 +00:00
- script: |
docker cp -L nix:result - | tar x --strip-components 1
2021-12-08 22:45:58 +00:00
displayName: Copy result out of docker
2021-12-08 22:14:39 +00:00
- publish: Applications
2021-12-08 21:40:19 +00:00
artifact: 68K Applications
2021-12-08 21:41:50 +00:00
- job: nix_ppc
2021-12-08 21:40:19 +00:00
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: true
- script: |
2021-12-08 22:58:27 +00:00
docker run --name nix -v`pwd`:/src nixos/nix:latest nix-build src -A ppc.retro68.samples
2021-12-08 22:45:58 +00:00
displayName: Build inside nixos/nix docker
2021-12-08 22:14:39 +00:00
- script: |
docker cp -L nix:result - | tar x --strip-components 1
2021-12-08 22:45:58 +00:00
displayName: Copy result out of docker
2021-12-08 22:14:39 +00:00
- publish: Applications
2021-12-08 21:40:19 +00:00
artifact: PowerPC Applications