Add decoding to section mangler #24
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: Build Linux | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
container: ghcr.io/plc-lang/rust-llvm:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Check | |
run: | | |
./scripts/build.sh --check | |
test-linux: | |
name: Test Linux | |
runs-on: ubuntu-latest | |
container: ghcr.io/plc-lang/rust-llvm:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cargo test | |
shell: bash | |
run: | | |
echo "Build command : ./scripts/build.sh --build --test" | |
./scripts/build.sh --build --test | |
package-linux: | |
name: Package Linux | |
runs-on: ubuntu-latest | |
container: ghcr.io/plc-lang/rust-llvm:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Release Build | |
shell: bash | |
run: | | |
echo "Build command : ./scripts/build.sh --build --release" | |
./scripts/build.sh --build --release --package \ | |
--target x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu | |
- uses: actions/upload-artifact@master | |
with: | |
name: plc | |
path: target/release/plc | |
- uses: actions/upload-artifact@master | |
with: | |
name: schema | |
path: compiler/plc_project/schema | |
- uses: actions/upload-artifact@master | |
with: | |
name: stdlib | |
path: output | |
style: | |
name: Check Style | |
runs-on: ubuntu-latest | |
container: ghcr.io/plc-lang/rust-llvm:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Checks | |
run: | | |
./scripts/build.sh --check-style | |
coverage: | |
name: Run Coverage | |
runs-on: ubuntu-latest | |
container: ghcr.io/plc-lang/rust-llvm:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Checks | |
run: | | |
./scripts/build.sh --coverage | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
files: lcov.info | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v1 | |
with: | |
name: code-coverage-report | |
path: lcov.info |