Skip to content

Commit

Permalink
Merge branch 'v.0.4-the-new-code-base' of https://github.com/njfio/fl…
Browse files Browse the repository at this point in the history
…uent_cli into v.0.4-the-new-code-base
  • Loading branch information
njfio committed Jul 19, 2024
2 parents 9bbf2f9 + 5bc9376 commit 9eb8b3c
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,29 +80,16 @@ jobs:
EOF
- name: Install rust target
run: rustup target add $TARGET
- name: List contents of the repository
run: ls -la
- name: Print current working directory
run: pwd
- name: change path
run: cd fluent_cli/
- name: List contents of the repository
run: ls -la
- name: Install wasm-bindgen-cli
if: matrix.TARGET == 'wasm32-unknown-unknown'
run: cargo install wasm-bindgen-cli
- name: Run build
run: |
if [[ $TARGET == "wasm32-unknown-unknown" ]]; then
cargo build --release --target $TARGET --manifest-path fluent_cli/Cargo.toml
wasm-bindgen --out-dir ./artifacts --target web fluent_cli/target/$TARGET/release/fluent.wasm
cargo build --release --target $TARGET --manifest-path Cargo.toml
wasm-bindgen --out-dir ./artifacts --target web ./target/$TARGET/release/fluent.wasm
else
cargo build --release --verbose --target $TARGET --manifest-path fluent_cli/Cargo.toml
cargo build --release --verbose --target $TARGET --manifest-path Cargo.toml
fi
- name: List contents of the repository
run: ls -lh fluent_cli/target
- name: List fluent_cli/target
run: find fluent_cli/target
- name: Check built files
run: find ./target/$TARGET/release/
- name: Compress
run: |
mkdir -p ./artifacts
Expand All @@ -119,8 +106,10 @@ jobs:
if [[ $TARGET == "wasm32-unknown-unknown" ]]; then
tar -czf ./artifacts/$NAME-$TARGET-$TAG.tar.gz -C ./artifacts .
else
mv fluent_cli/target/$TARGET/release/$EXEC ./$EXEC
tar -czf ./artifacts/$NAME-$TARGET-$TAG.tar.gz $EXEC fluent_cli/config.json amber.yaml amber-x86_64-apple-darwin amber-x86_64-pc-windows-gnu.exe amber-x86_64-unknown-linux-musl fluent_cli/fluent_cli_autocomplete.ps1 fluent_cli/fluent_cli_autocomplete.sh fluent_cli/windows-amber-key-setup.bat
# Debugging: Check if the file exists before moving
ls -alh ./target/$TARGET/release/
mv ./target/$TARGET/release/$EXEC $EXEC
tar -czf ./artifacts/$NAME-$TARGET-$TAG.tar.gz $EXEC default_config_test.json amber.yaml amber-x86_64-apple-darwin amber-x86_64-pc-windows-gnu.exe amber-x86_64-unknown-linux-musl fluent_autocomplete.ps1 fluent_autocomplete.sh
fi
- name: Archive artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 9eb8b3c

Please sign in to comment.