From fdbf31bcd5d0ab800dea07637f8aad67e566fce4 Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Sun, 14 Jun 2020 12:19:28 +0200 Subject: [PATCH 1/2] Create rust.yml --- .github/workflows/rust.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..62797b5 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,27 @@ +name: Rust + +on: + push: + branches: [master] + pull_request: + branches: [master] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Create vender + run: cargo vendor + - name: Set configuration + run: | + touch .cargo/.config + echo '[source.crates-io] \n replace-with = \"vendored-sources\" \n [source.vendored-sources] \n directory = "vendor"' >> .cargo/.config + - uses: actions/upload-artifact@v2 + with: + name: flatpak_build + path: . From 856fdd1ecc21bfd03de143d5966958102b9e3ff9 Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Sun, 14 Jun 2020 12:21:49 +0200 Subject: [PATCH 2/2] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 62797b5..ead1be7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,7 @@ jobs: run: cargo vendor - name: Set configuration run: | - touch .cargo/.config + mkdir .cargo && touch .cargo/.config echo '[source.crates-io] \n replace-with = \"vendored-sources\" \n [source.vendored-sources] \n directory = "vendor"' >> .cargo/.config - uses: actions/upload-artifact@v2 with: