unsafe export_name required in rust 2024 #42
Workflow file for this run
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: Playground | |
on: | |
merge_group: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build_container_image: | |
name: Build container image | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: extractions/setup-just@v2 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout examples from the latest released agb | |
run: git restore --source $(git describe --tags --abbrev=0) agb/examples | |
- name: Build image | |
run: just build-playground-image | |
- name: Save image | |
run: docker save agb-build:latest | zstd -9 -o agb-playground.tar.zstd | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: container-image | |
path: "agb-playground.tar.zstd" | |
build_app: | |
name: Build playground api | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: extractions/setup-just@v2 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
~/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Add rustup target | |
run: rustup target add x86_64-unknown-linux-musl | |
- name: Build playground | |
run: just build-playground-api | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playground | |
path: "target/x86_64-unknown-linux-musl/release/play" |