This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
build(deps): bump rustix from 0.36.8 to 0.36.16 in /tools/firefly-make #639
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: x86_64-unknown-linux-gnu compiler | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
env: | |
FIREFLY_BUILD_TYPE: static | |
LLVM_LINK_LLVM_DYLIB: OFF | |
LLVM_VERSION: "15" | |
LLVM_PREFIX: /usr/lib/llvm-15 | |
CARGO_MAKE_TOOLCHAIN: nightly-2023-02-07 | |
jobs: | |
compiler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Env | |
run: | | |
echo "$(whoami)" | |
echo "$PWD/bin" >> $GITHUB_PATH | |
- name: Install Ninja | |
run: | | |
wget "https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip" | |
unzip ninja-linux.zip -d /usr/local/bin | |
rm ninja-linux.zip | |
- name: Install LLVM | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh "${LLVM_VERSION}" | |
sudo apt-get install -y "llvm-${LLVM_VERSION}" "libllvm${LLVM_VERSION}" "llvm-${LLVM_VERSION}-dev" "libmlir-${LLVM_VERSION}-dev" "libunwind-${LLVM_VERSION}-dev" "llvm-${LLVM_VERSION}-runtime" | |
if ! "${LLVM_PREFIX}/bin/llvm-config" --prefix; then | |
echo "$("${LLVM_PREFIX}/bin/llvm-config" --prefix)" | |
exit 1 | |
fi | |
echo "$("${LLVM_PREFIX}/bin/llvm-config" --cxxflags)" | |
echo "$("${LLVM_PREFIX}/bin/llvm-config" --ldflags)" | |
echo "$("${LLVM_PREFIX}/bin/llvm-config" --host-target)" | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | |
override: true | |
- name: Cache Cargo | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install cargo-make | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | |
command: install | |
args: cargo-make | |
- name: Build Compiler | |
uses: actions-rs/cargo@v1 | |
env: | |
CC: clang | |
CXX: clang++ | |
with: | |
command: make | |
args: firefly | |
- name: Run compiler unit tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: "-p firefly_intern -p firefly_parser -p firefly_target -p firefly_syntax_erl -p firefly_syntax_pp" | |
- name: Run literate tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: test-lit |