Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
ci: come on
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Aug 31, 2022
1 parent b5c6a88 commit 7da47da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/x86_64-unknown-linux-gnu-compiler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: x86_64-unknown-linux-gnu compiler

on: push
on:
push:
paths-ignore:
- '*.md'

env:
TOOLCHAIN: nightly-2022-08-08
Expand All @@ -16,7 +19,10 @@ jobs:
- uses: actions/checkout@v2
- name: Setup Env
run: |
if [ -n "${XDG_DATA_HOME}" ]; then
echo "$(whoami)"
if [ -z "${XDG_DATA_HOME}" ]; then
sudo mkdir -p $HOME/.local/share/llvm
sudo chown -R runner $HOME/.local/share/llvm
echo "XDG_DATA_HOME=$HOME/.local/share" >> $GITHUB_ENV
fi
echo "$PWD/bin" >> $GITHUB_PATH
Expand All @@ -33,6 +39,10 @@ jobs:
tar -xz --strip-components 1 -f clang+llvm-15.0.0-x86_64-linux-gnu.tar.gz
rm clang+llvm-15.0.0-x86_64-linux-gnu.tar.gz
cd -
- name: Install Toolchain
run: |
rustup toolchain install ${TOOLCHAIN}
rustup default ${TOOLCHAIN}
- name: Cache Cargo
uses: actions/cache@v2
with:
Expand All @@ -43,15 +53,18 @@ jobs:
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: install
args: cargo-make
- name: Build Compiler
uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: make
args: firefly
- name: Run lit tests
uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: make
args: test-lit
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ CARGO_MAKE_RUST_SCRIPT_PROVIDER = "rust-script"
CARGO_MAKE_USE_WORKSPACE_PROFILE = true
CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--no-fail-fast"
CARGO_TARGET_DIR = { value = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target", condition = { env_not_set = ["CARGO_TARGET_DIR"] } }
CARGO_MAKE_TOOLCHAIN_DEFAULT = { source = "${CARGO_MAKE_CI}", default_value = "nightly", mapping = { "true" = "nightly-2022-07-12", "false" = "nightly" } }
CARGO_MAKE_TOOLCHAIN_DEFAULT = { source = "${CARGO_MAKE_CI}", default_value = "nightly", mapping = { "true" = "nightly-2022-08-08", "false" = "nightly" } }
CARGO_MAKE_TOOLCHAIN = { value = "${CARGO_MAKE_TOOLCHAIN_DEFAULT}", condition = { env_not_set = ["CARGO_MAKE_TOOLCHAIN"] } }
BACKTRACE_DEFAULT = { source = "${CARGO_MAKE_CI}", mapping = { "true" = "1", "false" = "0" } }
RUST_BACKTRACE = { value = "${BACKTRACE_DEFAULT}", condition = { env_not_set = ["RUST_BACKTRACE"] } }
Expand Down

0 comments on commit 7da47da

Please sign in to comment.