Skip to content

Commit

Permalink
CI: more temp dev-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook authored and github-actions[bot] committed Apr 3, 2024
1 parent d83e24f commit 03a4166
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 32 deletions.
57 changes: 26 additions & 31 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
description: "Source SHA used to build bindings. Uses `github.sha`` by default."
required: false
push:
branches: [dev/**, refactor/**]
branches: [dev*, refactor*, dev/**, refactor/**]

env:
CARGO_NET_RETRY: 10
Expand All @@ -29,7 +29,7 @@ jobs:
matrix:
os:
- macos-14
# - macos-latest
- macos-12
- ubuntu-latest
- windows-latest
defaults:
Expand All @@ -42,7 +42,7 @@ jobs:
ref: ${{ github.event.inputs.source || github.ref || github.event.ref }}

- name: Cache
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: |
target/
Expand All @@ -57,54 +57,49 @@ jobs:
- name: Install Deps
uses: ./.github/actions/tools-deps

- name: cargo
- name: prepare names
id: names
shell: bash
run: |
echo "os=-${{ runner.os }}" >> "$GITHUB_OUTPUT"
echo "ext=${{ ((runner.os == 'Windows') && '.exe') || ' ' }}" >> "$GITHUB_OUTPUT"
echo "suffix=${{ (runner.os == 'Windows' && format('-{0}', runner.arch)) || format('-{0}-{1}', runner.os, runner.arch) }}" >> "$GITHUB_OUTPUT"
echo "full=${{ (runner.os == 'Windows' && format('-{0}.exe', runner.arch)) || format('-{0}-{1}', runner.os, runner.arch) }}" >> "$GITHUB_OUTPUT"
- name: pdtool
continue-on-error: true
run: cargo build --bin=cargo-playdate
run: cargo build -p=playdate-tool --bin=pdtool --features=tracing
- name: Upload
uses: actions/upload-artifact@v4
with:
name: cargo-playdate-${{ runner.os }}-${{ runner.arch }}${{ ((runner.os == 'Windows') && '.exe') || ' ' }}
path: target/debug/cargo-playdate${{ ((runner.os == 'Windows') && '.exe') || ' ' }}
name: pdtool${{ steps.names.outputs.full }}
path: target/debug/pdtool${{ steps.names.outputs.ext }}
if-no-files-found: warn
retention-days: 3
overwrite: true


- name: pdtool
- name: bindgen
continue-on-error: true
run: cargo build -p=playdate-tool --bin=pdtool

run: >-
cargo build --bin=pdbindgen --no-default-features
--features=cli,documentation,extra-codegen,logging,pretty-please,which-rustfmt,runtime
- name: Upload
id: upload
uses: actions/upload-artifact@v4
with:
name: pdtool-${{ runner.os }}-${{ runner.arch }}${{ ((runner.os == 'Windows') && '.exe') || ' ' }}
path: target/debug/pdtool${{ ((runner.os == 'Windows') && '.exe') || ' ' }}
name: pdbindgen${{ steps.names.outputs.full }}
path: target/debug/pdbindgen${{ steps.names.outputs.ext }}
if-no-files-found: warn
retention-days: 3
overwrite: true
- name: Artifact
run: |
echo 'ID: ${{ steps.upload.outputs.artifact-id }}'
echo 'URL: ${{ steps.upload.outputs.artifact-url }}'

- name: pdtool with tracing
- name: cargo
continue-on-error: true
run: cargo build -p=playdate-tool --bin=pdtool --features=tracing

run: cargo build --bin=cargo-playdate --all-features
- name: Upload
uses: actions/upload-artifact@v4
with:
name: pdtool+tracing-${{ runner.os }}-${{ runner.arch }}${{ ((runner.os == 'Windows') && '.exe') || ' ' }}
path: target/debug/pdtool${{ ((runner.os == 'Windows') && '.exe') || ' ' }}
name: cargo-playdate${{ steps.names.outputs.full }}
path: target/debug/cargo-playdate${{ steps.names.outputs.ext }}
if-no-files-found: warn
retention-days: 3
overwrite: true
- name: Artifact
run: |
echo 'ID: ${{ steps.upload.outputs.artifact-id }}'
echo 'URL: ${{ steps.upload.outputs.artifact-url }}'
outputs:
artifact-id: ${{ steps.upload.outputs.artifact-id }}
artifact-url: ${{ steps.upload.outputs.artifact-url }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ jobs:
run: >-
cargo build --release --bin=pdbindgen --no-default-features
--features=cli,documentation,extra-codegen,logging,pretty-please,which-rustfmt,runtime
# ${{ ((runner.os == 'Windows') && 'static') || 'runtime' }}
- name: bindgen to upload
if: steps.bindgen.outcome == 'success' && runner.os != 'macOS'
Expand Down

0 comments on commit 03a4166

Please sign in to comment.