Add build artifacts #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make CI/CD | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
defaults: | |
run: | |
working-directory: ${{github.workspace}} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure to use MinGW-w64 (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: bash | |
run: | | |
export CC=x86_64-w64-mingw32-gcc | |
export CXX=x86_64-w64-mingw32-g++ | |
- name: Download Adept Latest Standalone (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: bash | |
run: | | |
curl -o Windows-x86_64-Standalone-Adept-nightly.zip -L https://github.com/AdeptLanguage/Adept/releases/download/Nightly/Windows-x86_64-Standalone-Adept-nightly.zip | |
7z x Windows-x86_64-Standalone-Adept-nightly.zip | |
echo "${{github.workspace}}\adept-nightly-standalone" >> $GITHUB_PATH | |
- name: Download Adept Latest Standalone (macOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
curl -o MacOS-arm64-Standalone-Adept-nightly.zip -L https://github.com/AdeptLanguage/Adept/releases/download/Nightly/MacOS-arm64-Standalone-Adept-nightly.zip | |
unzip MacOS-arm64-Standalone-Adept-nightly.zip | |
echo "${{github.workspace}}/adept-nightly-standalone" >> $GITHUB_PATH | |
- name: Download Adept Latest Standalone (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
curl -o Ubuntu-x86_64-Standalone-Adept-nightly.zip -L https://github.com/AdeptLanguage/Adept/releases/download/Nightly/Ubuntu-x86_64-Standalone-Adept-nightly.zip | |
unzip Ubuntu-x86_64-Standalone-Adept-nightly.zip | |
echo "${{github.workspace}}/adept-nightly-standalone" >> $GITHUB_PATH | |
- name: make (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
mingw32-make SHELL=cmd | |
dir | |
- name: make (macOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
make | |
ls | |
- name: make (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get install -y llvm-15 | |
make | |
ls | |
- name: Upload Build Artifact (Windows) | |
uses: actions/upload-artifact@v3 | |
if: ${{ matrix.os == 'windows-latest' }} | |
with: | |
name: adeptls-windows | |
path: adeptls.exe | |
- name: Upload Build Artifact (macOS) | |
uses: actions/upload-artifact@v3 | |
if: ${{ matrix.os == 'macos-latest' }} | |
with: | |
name: adeptls-macos | |
path: adeptls | |
- name: Upload Build Artifact (Ubuntu) | |
uses: actions/upload-artifact@v3 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
name: adeptls-ubuntu | |
path: adeptls | |