Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Include macro not finding a file #231

Open
2 of 3 tasks
x86y opened this issue Jun 23, 2023 · 0 comments
Open
2 of 3 tasks

Include macro not finding a file #231

x86y opened this issue Jun 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@x86y
Copy link

x86y commented Jun 23, 2023

Do the checklist before filing an issue:

Description

include_bytes! does not find a valid and existing file in the project directory

Workflow code

on: [push, pull_request]
name: xcompile
env:
  PKG_CONFIG_PATH: "/usr/lib/x86_64-linux-gnu/pkgconfig"

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    strategy:
      matrix:
        target:
          # - aarch64-apple-darwin
          # - x86_64-unknown-linux-gnu
          - x86_64-pc-windows-gnu
        cross: [true]
    steps:
      - uses: actions/checkout@v3
      - name: Check if BQN.Wasm exists
        run: file /home/runner/work/beacon/beacon/src/BQN.wasm
      - name: Toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          target: ${{ matrix.target }}
          override: true
      - name: Install dependencies
        run: |
          sudo apt-get install cmake pkg-config libfreetype6-dev fontconfig libfontconfig libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev
      - if: ${{ matrix.cross }}
        name: Create Cross.toml
        shell: bash
        run: |
          cat > Cross.toml <<EOF
          [build.env]
          passthrough = ["BQN_WASM"]
          EOF
      - name: Cargo Build
        uses: actions-rs/cargo@v1
        env:
          BQN_WASM: /home/runner/work/beacon/beacon/src/BQN.wasm
        with:
          use-cross: true
          command: build
          args: --release --target=${{ matrix.target }} --no-default-features --features=bqnwasm
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: |
            README.md
            LICENSE

Action output

output 2023-06-23T08:10:08.4308126Z Requested labels: ubuntu-latest 2023-06-23T08:10:08.4308494Z Job defined at: x86y/beacon/.github/workflows/compile.yml@refs/heads/develop 2023-06-23T08:10:08.4308634Z Waiting for a runner to pick up this job... 2023-06-23T08:10:08.9176201Z Job is waiting for a hosted runner to come online. 2023-06-23T08:10:12.7040464Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted) 2023-06-23T08:10:16.4213234Z Current runner version: '2.305.0' 2023-06-23T08:10:16.4248450Z ##[group]Operating System 2023-06-23T08:10:16.4249232Z Ubuntu 2023-06-23T08:10:16.4249508Z 22.04.2 2023-06-23T08:10:16.4249812Z LTS 2023-06-23T08:10:16.4250087Z ##[endgroup] 2023-06-23T08:10:16.4250435Z ##[group]Runner Image 2023-06-23T08:10:16.4250900Z Image: ubuntu-22.04 2023-06-23T08:10:16.4251260Z Version: 20230619.1.0 2023-06-23T08:10:16.4251783Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230619.1.0/images/linux/Ubuntu2204-Readme.md 2023-06-23T08:10:16.4253362Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230619.1.0 2023-06-23T08:10:16.4254051Z ##[endgroup] 2023-06-23T08:10:16.4254412Z ##[group]Runner Image Provisioner 2023-06-23T08:10:16.4254810Z 2.0.238.1 2023-06-23T08:10:16.4255147Z ##[endgroup] 2023-06-23T08:10:16.4256414Z ##[group]GITHUB_TOKEN Permissions 2023-06-23T08:10:16.4257322Z Actions: write 2023-06-23T08:10:16.4257936Z Checks: write 2023-06-23T08:10:16.4258416Z Contents: write 2023-06-23T08:10:16.4258764Z Deployments: write 2023-06-23T08:10:16.4259113Z Discussions: write 2023-06-23T08:10:16.4259399Z Issues: write 2023-06-23T08:10:16.4259737Z Metadata: read 2023-06-23T08:10:16.4260122Z Packages: write 2023-06-23T08:10:16.4260406Z Pages: write 2023-06-23T08:10:16.4260751Z PullRequests: write 2023-06-23T08:10:16.4261168Z RepositoryProjects: write 2023-06-23T08:10:16.4261497Z SecurityEvents: write 2023-06-23T08:10:16.4261897Z Statuses: write 2023-06-23T08:10:16.4262241Z ##[endgroup] 2023-06-23T08:10:16.4267118Z Secret source: Actions 2023-06-23T08:10:16.4267749Z Prepare workflow directory 2023-06-23T08:10:16.5354015Z Prepare all required actions 2023-06-23T08:10:16.5582395Z Getting action download info 2023-06-23T08:10:16.8762816Z Download action repository 'actions/checkout@v3' (SHA:c85c95e3d7251135ab7dc9ce3241c5835cc595a9) 2023-06-23T08:10:17.2553827Z Download action repository 'actions-rs/toolchain@v1' (SHA:16499b5e05bf2e26879000db0c1d13f7e13fa3af) 2023-06-23T08:10:17.4486786Z Download action repository 'actions-rs/cargo@v1' (SHA:844f36862e911db73fe0815f00a4a2602c279505) 2023-06-23T08:10:17.6403038Z Download action repository 'softprops/action-gh-release@v1' (SHA:de2c0eb89ae2a093876385947365aca7b0e5f844) 2023-06-23T08:10:17.9516092Z Complete job name: Build (x86_64-pc-windows-gnu, true) 2023-06-23T08:10:18.0805545Z ##[group]Run actions/checkout@v3 2023-06-23T08:10:18.0806212Z with: 2023-06-23T08:10:18.0806509Z repository: x86y/beacon 2023-06-23T08:10:18.0807301Z token: *** 2023-06-23T08:10:18.0807770Z ssh-strict: true 2023-06-23T08:10:18.0808143Z persist-credentials: true 2023-06-23T08:10:18.0808633Z clean: true 2023-06-23T08:10:18.1000875Z sparse-checkout-cone-mode: true 2023-06-23T08:10:18.1001398Z fetch-depth: 1 2023-06-23T08:10:18.1001645Z lfs: false 2023-06-23T08:10:18.1002048Z submodules: false 2023-06-23T08:10:18.1002466Z set-safe-directory: true 2023-06-23T08:10:18.1002755Z env: 2023-06-23T08:10:18.1003057Z PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig 2023-06-23T08:10:18.1003539Z ##[endgroup] 2023-06-23T08:10:18.4272025Z Syncing repository: x86y/beacon 2023-06-23T08:10:18.4274526Z ##[group]Getting Git version info 2023-06-23T08:10:18.4275282Z Working directory is '/home/runner/work/beacon/beacon' 2023-06-23T08:10:18.4275938Z [command]/usr/bin/git version 2023-06-23T08:10:18.4351228Z git version 2.41.0 2023-06-23T08:10:18.4384533Z ##[endgroup] 2023-06-23T08:10:18.4405683Z Temporarily overriding HOME='/home/runner/work/_temp/8a6de97c-5979-4fb3-b6b0-11488f9567ca' before making global git config changes 2023-06-23T08:10:18.4406165Z Adding repository directory to the temporary git global config as a safe directory 2023-06-23T08:10:18.4412813Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/beacon/beacon 2023-06-23T08:10:18.4457300Z Deleting the contents of '/home/runner/work/beacon/beacon' 2023-06-23T08:10:18.4463501Z ##[group]Initializing the repository 2023-06-23T08:10:18.4469888Z [command]/usr/bin/git init /home/runner/work/beacon/beacon 2023-06-23T08:10:18.4578012Z hint: Using 'master' as the name for the initial branch. This default branch name 2023-06-23T08:10:18.4578871Z hint: is subject to change. To configure the initial branch name to use in all 2023-06-23T08:10:18.4580212Z hint: of your new repositories, which will suppress this warning, call: 2023-06-23T08:10:18.4580783Z hint: 2023-06-23T08:10:18.4581818Z hint: git config --global init.defaultBranch 2023-06-23T08:10:18.4582561Z hint: 2023-06-23T08:10:18.4583399Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2023-06-23T08:10:18.4584310Z hint: 'development'. The just-created branch can be renamed via this command: 2023-06-23T08:10:18.4585108Z hint: 2023-06-23T08:10:18.4585669Z hint: git branch -m 2023-06-23T08:10:18.4596191Z Initialized empty Git repository in /home/runner/work/beacon/beacon/.git/ 2023-06-23T08:10:18.4608517Z [command]/usr/bin/git remote add origin https://github.com/x86y/beacon 2023-06-23T08:10:18.4659919Z ##[endgroup] 2023-06-23T08:10:18.4660681Z ##[group]Disabling automatic garbage collection 2023-06-23T08:10:18.4663371Z [command]/usr/bin/git config --local gc.auto 0 2023-06-23T08:10:18.4702424Z ##[endgroup] 2023-06-23T08:10:18.4703171Z ##[group]Setting up auth 2023-06-23T08:10:18.4713766Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2023-06-23T08:10:18.4750032Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2023-06-23T08:10:18.5215765Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2023-06-23T08:10:18.5246036Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2023-06-23T08:10:18.5535461Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2023-06-23T08:10:18.5569487Z ##[endgroup] 2023-06-23T08:10:18.5570142Z ##[group]Fetching the repository 2023-06-23T08:10:18.5584117Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +53e18a44ca6e8d48efbe9e4dd894308e0e3b19bd:refs/remotes/origin/develop 2023-06-23T08:10:18.7453684Z remote: Enumerating objects: 133, done. 2023-06-23T08:10:18.7459972Z remote: Counting objects: 0% (1/133) 2023-06-23T08:10:18.7460895Z remote: Counting objects: 1% (2/133) 2023-06-23T08:10:18.7461462Z remote: Counting objects: 2% (3/133) 2023-06-23T08:10:18.7462593Z remote: Counting objects: 3% (4/133) 2023-06-23T08:10:18.7463289Z remote: Counting objects: 4% (6/133) 2023-06-23T08:10:18.7463999Z remote: Counting objects: 5% (7/133) 2023-06-23T08:10:18.7464523Z remote: Counting objects: 6% (8/133) 2023-06-23T08:10:18.7465277Z remote: Counting objects: 7% (10/133) 2023-06-23T08:10:18.7466056Z remote: Counting objects: 8% (11/133) 2023-06-23T08:10:18.7466787Z remote: Counting objects: 9% (12/133) 2023-06-23T08:10:18.7467314Z remote: Counting objects: 10% (14/133) 2023-06-23T08:10:18.7469317Z remote: Counting objects: 11% (15/133) 2023-06-23T08:10:18.7470097Z remote: Counting objects: 12% (16/133) 2023-06-23T08:10:18.7471076Z remote: Counting objects: 13% (18/133) 2023-06-23T08:10:18.7471814Z remote: Counting objects: 14% (19/133) 2023-06-23T08:10:18.7472800Z remote: Counting objects: 15% (20/133) ... 2023-06-23T08:10:18.9525505Z Resolving deltas: 37% (3/8) 2023-06-23T08:10:18.9531238Z Resolving deltas: 50% (4/8) 2023-06-23T08:10:18.9536252Z Resolving deltas: 62% (5/8) 2023-06-23T08:10:18.9540060Z Resolving deltas: 75% (6/8) 2023-06-23T08:10:18.9544418Z Resolving deltas: 87% (7/8) 2023-06-23T08:10:18.9555027Z Resolving deltas: 100% (8/8) 2023-06-23T08:10:18.9555334Z Resolving deltas: 100% (8/8), done. 2023-06-23T08:10:19.0952289Z From https://github.com/x86y/beacon 2023-06-23T08:10:19.0953539Z * [new ref] 53e18a44ca6e8d48efbe9e4dd894308e0e3b19bd -> origin/develop 2023-06-23T08:10:19.1008944Z ##[endgroup] 2023-06-23T08:10:19.1009696Z ##[group]Determining the checkout info 2023-06-23T08:10:19.1010641Z ##[endgroup] 2023-06-23T08:10:19.1011298Z ##[group]Checking out the ref 2023-06-23T08:10:19.1012395Z [command]/usr/bin/git checkout --progress --force -B develop refs/remotes/origin/develop 2023-06-23T08:10:19.1622802Z Switched to a new branch 'develop' 2023-06-23T08:10:19.1627469Z branch 'develop' set up to track 'origin/develop'. 2023-06-23T08:10:19.1657012Z ##[endgroup] 2023-06-23T08:10:19.1710897Z [command]/usr/bin/git log -1 --format='%H' 2023-06-23T08:10:19.1733247Z '53e18a44ca6e8d48efbe9e4dd894308e0e3b19bd' 2023-06-23T08:10:19.2086409Z ##[group]Run file /home/runner/work/beacon/beacon/src/BQN.wasm 2023-06-23T08:10:19.2086883Z �[36;1mfile /home/runner/work/beacon/beacon/src/BQN.wasm�[0m 2023-06-23T08:10:19.2156420Z shell: /usr/bin/bash -e {0} 2023-06-23T08:10:19.2156681Z env: 2023-06-23T08:10:19.2157135Z PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig 2023-06-23T08:10:19.2157425Z ##[endgroup] 2023-06-23T08:10:19.4451193Z /home/runner/work/beacon/beacon/src/BQN.wasm: WebAssembly (wasm) binary module version 0x1 (MVP) 2023-06-23T08:10:19.4525124Z ##[group]Run actions-rs/toolchain@v1 2023-06-23T08:10:19.4525393Z with: 2023-06-23T08:10:19.4525585Z toolchain: stable 2023-06-23T08:10:19.4525810Z target: x86_64-pc-windows-gnu 2023-06-23T08:10:19.4526009Z override: true 2023-06-23T08:10:19.4526207Z default: false 2023-06-23T08:10:19.4526392Z env: 2023-06-23T08:10:19.4526811Z PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig 2023-06-23T08:10:19.4527238Z ##[endgroup] 2023-06-23T08:10:19.6248133Z [command]/home/runner/.cargo/bin/rustup show 2023-06-23T08:10:20.0126908Z Default host: x86_64-unknown-linux-gnu 2023-06-23T08:10:20.0133052Z rustup home: /home/runner/.rustup 2023-06-23T08:10:20.0137910Z 2023-06-23T08:10:20.1143672Z stable-x86_64-unknown-linux-gnu (default) 2023-06-23T08:10:20.2883997Z rustc 1.70.0 (90c541806 2023-05-31) 2023-06-23T08:10:20.3033548Z [command]/home/runner/.cargo/bin/rustup toolchain install stable 2023-06-23T08:10:20.4036551Z info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' 2023-06-23T08:10:20.4983998Z 2023-06-23T08:10:20.5151751Z stable-x86_64-unknown-linux-gnu unchanged - rustc 1.70.0 (90c541806 2023-05-31) 2023-06-23T08:10:20.5152519Z 2023-06-23T08:10:20.5152798Z info: checking for self-update 2023-06-23T08:10:20.5211788Z warning: tool `rust-analyzer` is already installed, remove it from `/home/runner/.cargo/bin`, then run `rustup update` to have rustup manage this tool. 2023-06-23T08:10:20.5212730Z warning: tool `rustfmt` is already installed, remove it from `/home/runner/.cargo/bin`, then run `rustup update` to have rustup manage this tool. 2023-06-23T08:10:20.5215607Z warning: tool `cargo-fmt` is already installed, remove it from `/home/runner/.cargo/bin`, then run `rustup update` to have rustup manage this tool. 2023-06-23T08:10:20.5240513Z [command]/home/runner/.cargo/bin/rustup override set stable 2023-06-23T08:10:20.5317996Z info: using existing install for 'stable-x86_64-unknown-linux-gnu' 2023-06-23T08:10:20.5318593Z info: override toolchain for '/home/runner/work/beacon/beacon' set to 'stable-x86_64-unknown-linux-gnu' 2023-06-23T08:10:20.5336857Z 2023-06-23T08:10:20.5512649Z stable-x86_64-unknown-linux-gnu unchanged - rustc 1.70.0 (90c541806 2023-05-31) 2023-06-23T08:10:20.5513324Z 2023-06-23T08:10:20.5530166Z [command]/home/runner/.cargo/bin/rustup target add --toolchain stable x86_64-pc-windows-gnu 2023-06-23T08:10:20.6355827Z info: downloading component 'rust-std' for 'x86_64-pc-windows-gnu' 2023-06-23T08:10:20.9368312Z info: installing component 'rust-std' for 'x86_64-pc-windows-gnu' 2023-06-23T08:10:23.5293056Z ##[group]Gathering installed versions 2023-06-23T08:10:23.5305150Z [command]/home/runner/.cargo/bin/rustc -V 2023-06-23T08:10:23.6000567Z rustc 1.70.0 (90c541806 2023-05-31) 2023-06-23T08:10:23.6042088Z ##[warning]The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ 2023-06-23T08:10:23.6055322Z ##[warning]The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ 2023-06-23T08:10:23.6056315Z [command]/home/runner/.cargo/bin/cargo -V 2023-06-23T08:10:24.1910707Z cargo 1.70.0 (ec8a8a0ca 2023-04-25) 2023-06-23T08:10:24.1923775Z ##[warning]The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ 2023-06-23T08:10:24.1935510Z [command]/home/runner/.cargo/bin/rustup -V 2023-06-23T08:10:24.1987114Z rustup 1.26.0 (5af9b9484 2023-04-05) 2023-06-23T08:10:24.1988018Z info: This is the version for the rustup toolchain manager, not the rustc compiler. 2023-06-23T08:10:24.2581060Z info: The currently active `rustc` version is `rustc 1.70.0 (90c541806 2023-05-31)` 2023-06-23T08:10:24.2599305Z ##[warning]The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ 2023-06-23T08:10:24.2602068Z ##[endgroup] 2023-06-23T08:10:24.2728736Z ##[group]Run sudo apt-get install cmake pkg-config libfreetype6-dev fontconfig libfontconfig libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev 2023-06-23T08:10:24.2729368Z �[36;1msudo apt-get install cmake pkg-config libfreetype6-dev fontconfig libfontconfig libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev�[0m 2023-06-23T08:10:24.2786284Z shell: /usr/bin/bash -e {0} 2023-06-23T08:10:24.2786505Z env: 2023-06-23T08:10:24.2786734Z PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig 2023-06-23T08:10:24.2786978Z ##[endgroup] 2023-06-23T08:10:29.0670519Z Reading package lists... 2023-06-23T08:10:29.2329449Z Building dependency tree... 2023-06-23T08:10:29.2542713Z Reading state information... 2023-06-23T08:10:29.3950233Z fontconfig is already the newest version (2.13.1-4.2ubuntu5). 2023-06-23T08:10:29.3950975Z fontconfig set to manually installed. 2023-06-23T08:10:29.3953919Z libfontconfig1 is already the newest version (2.13.1-4.2ubuntu5). 2023-06-23T08:10:29.3956237Z libfontconfig1 set to manually installed. 2023-06-23T08:10:29.3956797Z libfontconfig1-dev is already the newest version (2.13.1-4.2ubuntu5). 2023-06-23T08:10:29.3957336Z libfontconfig1-dev set to manually installed. 2023-06-23T08:10:29.3957886Z pkg-config is already the newest version (0.29.2-1ubuntu3). 2023-06-23T08:10:29.3959653Z libfreetype6-dev is already the newest version (2.11.1+dfsg-1ubuntu0.2). 2023-06-23T08:10:29.3960405Z libfreetype6-dev set to manually installed. 2023-06-23T08:10:29.3961082Z The following additional packages will be installed: 2023-06-23T08:10:29.3961616Z cmake-data dh-elpa-helper libjsoncpp25 librhash0 libxcb-shape0 2023-06-23T08:10:29.3961935Z libxcb-shape0-dev 2023-06-23T08:10:29.4009698Z Suggested packages: 2023-06-23T08:10:29.4010256Z cmake-doc ninja-build cmake-format 2023-06-23T08:10:29.4494721Z The following NEW packages will be installed: 2023-06-23T08:10:29.4499848Z cmake cmake-data dh-elpa-helper libjsoncpp25 librhash0 libxcb-shape0 2023-06-23T08:10:29.4503101Z libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev 2023-06-23T08:10:29.6667155Z 0 upgraded, 9 newly installed, 0 to remove and 27 not upgraded. 2023-06-23T08:10:29.6668409Z Need to get 7219 kB of archives. 2023-06-23T08:10:29.6668729Z After this operation, 32.4 MB of additional disk space will be used. 2023-06-23T08:10:29.6669784Z Get:1 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libjsoncpp25 amd64 1.9.5-3 [80.0 kB] 2023-06-23T08:10:29.7232555Z Get:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 librhash0 amd64 1.4.2-1ubuntu1 [125 kB] 2023-06-23T08:10:29.7535978Z Get:3 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 dh-elpa-helper all 2.0.9ubuntu1 [7610 B] 2023-06-23T08:10:29.7690235Z Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cmake-data all 3.22.1-1ubuntu1.22.04.1 [1913 kB] 2023-06-23T08:10:29.8382306Z Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cmake amd64 3.22.1-1ubuntu1.22.04.1 [5013 kB] 2023-06-23T08:10:29.9089655Z Get:6 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libxcb-shape0 amd64 1.14-3ubuntu3 [6158 B] 2023-06-23T08:10:29.9243525Z Get:7 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libxcb-shape0-dev amd64 1.14-3ubuntu3 [7320 B] 2023-06-23T08:10:29.9401187Z Get:8 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libxcb-xfixes0-dev amd64 1.14-3ubuntu3 [12.5 kB] 2023-06-23T08:10:29.9559038Z Get:9 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libxkbcommon-dev amd64 1.4.0-1 [54.9 kB] 2023-06-23T08:10:30.4347125Z Fetched 7219 kB in 1s (14.4 MB/s) 2023-06-23T08:10:30.5314262Z Selecting previously unselected package libjsoncpp25:amd64. 2023-06-23T08:10:30.5590270Z (Reading database ... 2023-06-23T08:10:30.5590548Z (Reading database ... 5% 2023-06-23T08:10:30.5590949Z (Reading database ... 10% 2023-06-23T08:10:30.5591447Z (Reading database ... 15% 2023-06-23T08:10:30.5591775Z (Reading database ... 20% 2023-06-23T08:10:30.5592053Z (Reading database ... 25% 2023-06-23T08:10:30.5592652Z (Reading database ... 30% 2023-06-23T08:10:30.5592901Z (Reading database ... 35% 2023-06-23T08:10:30.5593310Z (Reading database ... 40% 2023-06-23T08:10:30.5593550Z (Reading database ... 45% 2023-06-23T08:10:30.5593773Z (Reading database ... 50% 2023-06-23T08:10:30.8716329Z (Reading database ... 55% 2023-06-23T08:10:31.0780747Z (Reading database ... 60% 2023-06-23T08:10:31.2887845Z (Reading database ... 65% 2023-06-23T08:10:31.6106491Z (Reading database ... 70% 2023-06-23T08:10:32.4169179Z (Reading database ... 75% 2023-06-23T08:10:33.5238521Z (Reading database ... 80% 2023-06-23T08:10:34.4638721Z (Reading database ... 85% 2023-06-23T08:10:35.4049789Z (Reading database ... 90% 2023-06-23T08:10:36.4231405Z (Reading database ... 95% 2023-06-23T08:10:36.4232262Z (Reading database ... 100% 2023-06-23T08:10:36.4233281Z (Reading database ... 221163 files and directories currently installed.) 2023-06-23T08:10:36.4367679Z Preparing to unpack .../0-libjsoncpp25_1.9.5-3_amd64.deb ... 2023-06-23T08:10:36.4495982Z Unpacking libjsoncpp25:amd64 (1.9.5-3) ... 2023-06-23T08:10:36.4865869Z Selecting previously unselected package librhash0:amd64. 2023-06-23T08:10:36.5111811Z Preparing to unpack .../1-librhash0_1.4.2-1ubuntu1_amd64.deb ... 2023-06-23T08:10:36.5142677Z Unpacking librhash0:amd64 (1.4.2-1ubuntu1) ... 2023-06-23T08:10:36.5501251Z Selecting previously unselected package dh-elpa-helper. 2023-06-23T08:10:36.5766622Z Preparing to unpack .../2-dh-elpa-helper_2.0.9ubuntu1_all.deb ... 2023-06-23T08:10:36.5799872Z Unpacking dh-elpa-helper (2.0.9ubuntu1) ... 2023-06-23T08:10:36.6248252Z Selecting previously unselected package cmake-data. 2023-06-23T08:10:36.6499066Z Preparing to unpack .../3-cmake-data_3.22.1-1ubuntu1.22.04.1_all.deb ... 2023-06-23T08:10:36.6613305Z Unpacking cmake-data (3.22.1-1ubuntu1.22.04.1) ... 2023-06-23T08:10:37.2962085Z Selecting previously unselected package cmake. 2023-06-23T08:10:37.3221712Z Preparing to unpack .../4-cmake_3.22.1-1ubuntu1.22.04.1_amd64.deb ... 2023-06-23T08:10:37.3239180Z Unpacking cmake (3.22.1-1ubuntu1.22.04.1) ... 2023-06-23T08:10:37.5056923Z Selecting previously unselected package libxcb-shape0:amd64. 2023-06-23T08:10:37.5311622Z Preparing to unpack .../5-libxcb-shape0_1.14-3ubuntu3_amd64.deb ... 2023-06-23T08:10:37.5332908Z Unpacking libxcb-shape0:amd64 (1.14-3ubuntu3) ... 2023-06-23T08:10:37.5629735Z Selecting previously unselected package libxcb-shape0-dev:amd64. 2023-06-23T08:10:37.5855304Z Preparing to unpack .../6-libxcb-shape0-dev_1.14-3ubuntu3_amd64.deb ... 2023-06-23T08:10:37.5875311Z Unpacking libxcb-shape0-dev:amd64 (1.14-3ubuntu3) ... 2023-06-23T08:10:37.6302066Z Selecting previously unselected package libxcb-xfixes0-dev:amd64. 2023-06-23T08:10:37.6553742Z Preparing to unpack .../7-libxcb-xfixes0-dev_1.14-3ubuntu3_amd64.deb ... 2023-06-23T08:10:37.6572415Z Unpacking libxcb-xfixes0-dev:amd64 (1.14-3ubuntu3) ... 2023-06-23T08:10:37.6869184Z Selecting previously unselected package libxkbcommon-dev:amd64. 2023-06-23T08:10:37.7075496Z Preparing to unpack .../8-libxkbcommon-dev_1.4.0-1_amd64.deb ... 2023-06-23T08:10:37.7098919Z Unpacking libxkbcommon-dev:amd64 (1.4.0-1) ... 2023-06-23T08:10:37.7767855Z Setting up libxkbcommon-dev:amd64 (1.4.0-1) ... 2023-06-23T08:10:37.7820429Z Setting up libxcb-shape0:amd64 (1.14-3ubuntu3) ... 2023-06-23T08:10:37.7873333Z Setting up dh-elpa-helper (2.0.9ubuntu1) ... 2023-06-23T08:10:37.7925655Z Setting up libjsoncpp25:amd64 (1.9.5-3) ... 2023-06-23T08:10:37.7970067Z Setting up libxcb-shape0-dev:amd64 (1.14-3ubuntu3) ... 2023-06-23T08:10:37.8022952Z Setting up librhash0:amd64 (1.4.2-1ubuntu1) ... 2023-06-23T08:10:37.8076739Z Setting up cmake-data (3.22.1-1ubuntu1.22.04.1) ... 2023-06-23T08:10:37.8890808Z Setting up libxcb-xfixes0-dev:amd64 (1.14-3ubuntu3) ... 2023-06-23T08:10:37.8943492Z Setting up cmake (3.22.1-1ubuntu1.22.04.1) ... 2023-06-23T08:10:37.9002993Z Processing triggers for man-db (2.10.2-1) ... 2023-06-23T08:10:38.9603092Z Processing triggers for libc-bin (2.35-0ubuntu3.1) ... 2023-06-23T08:10:44.7263851Z NEEDRESTART-VER: 3.5 2023-06-23T08:10:45.4958322Z NEEDRESTART-KCUR: 5.15.0-1040-azure 2023-06-23T08:10:45.4959727Z NEEDRESTART-KEXP: 5.15.0-1040-azure 2023-06-23T08:10:45.4960787Z NEEDRESTART-KSTA: 1 2023-06-23T08:10:47.5142232Z ##[group]Run cat > Cross.toml < Cross.toml < /cargo/registry/src/index.crates.io-6f17d22bba15001f/cbqn-0.1.0/src/backend/wasi.rs:94:36 2023-06-23T08:24:14.8799006Z | 2023-06-23T08:24:14.8799684Z 94 | static WASM_BYTES: &'static [u8] = include_bytes!(env!("BQN_WASM")); 2023-06-23T08:24:14.8800060Z | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-06-23T08:24:14.8800308Z | 2023-06-23T08:24:14.8801008Z = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) 2023-06-23T08:24:14.8801312Z 2023-06-23T08:24:15.4130417Z error: could not compile `cbqn` (lib) due to previous error 2023-06-23T08:24:15.4145360Z ##[error]warning: build failed, waiting for other jobs to finish... 2023-06-23T08:25:08.2728283Z ##[error]The process 'cross' failed with exit code 101 2023-06-23T08:25:08.2860552Z Post job cleanup. 2023-06-23T08:25:08.4387079Z [command]/usr/bin/git version 2023-06-23T08:25:08.4463033Z git version 2.41.0 2023-06-23T08:25:08.4549223Z Temporarily overriding HOME='/home/runner/work/_temp/4b881e93-0318-4202-a6e0-6245940c00ee' before making global git config changes 2023-06-23T08:25:08.4552381Z Adding repository directory to the temporary git global config as a safe directory 2023-06-23T08:25:08.4562408Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/beacon/beacon 2023-06-23T08:25:08.4621436Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2023-06-23T08:25:08.4674764Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2023-06-23T08:25:08.5067049Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2023-06-23T08:25:08.5113451Z http.https://github.com/.extraheader 2023-06-23T08:25:08.5144348Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2023-06-23T08:25:08.5270286Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2023-06-23T08:25:08.5876767Z Cleaning up orphan processes

Expected behavior

BQN.wasm should have been found. It works locally.

Additional context

For debugging purposes I added a step that checked the existence of the wasm file, with the following command: file /home/runner/work/beacon/beacon/src/BQN.wasm and the output of that step is:

Run file /home/runner/work/beacon/beacon/src/BQN.wasm
/home/runner/work/beacon/beacon/src/BQN.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)

But later in the build step, cargo is unable find the same file

error: couldn't read /home/runner/work/beacon/beacon/src/BQN.wasm: No such file or directory (os error 2)

Error:   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/cbqn-0.1.0/src/backend/wasi.rs:94:36
   |
94 | static WASM_BYTES: &'static [u8] = include_bytes!(env!("BQN_WASM"));
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
@x86y x86y added the bug Something isn't working label Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant